Created
November 8, 2015 17:53
-
-
Save nalin-adh/9f74da64191d9b6a2115 to your computer and use it in GitHub Desktop.
A C++ program that finds area and circumference of circle.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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