Skip to content

Instantly share code, notes, and snippets.

@nalin-adh
Created November 8, 2015 17:53
Show Gist options
  • Save nalin-adh/9f74da64191d9b6a2115 to your computer and use it in GitHub Desktop.
Save nalin-adh/9f74da64191d9b6a2115 to your computer and use it in GitHub Desktop.
A C++ program that finds area and circumference of circle.
#include<iostream>
#include<conio.h>
using namespace std;
const float pi=3.1415;
int main()
{
float r,area,circum;
cout<<"Enter the ardius of the circle : ";
cin>>r;
area=pi*r*r;
circum=2*pi*r;
cout<<endl<<endl;
cout<<"Area : "<<area<<endl;
cout<<"Circumference : "<<circum<<endl;
getch()
return(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment