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.h> | |
#include<stdlib.h> | |
#define pi 3.14 | |
void main() | |
{ | |
int a,r; | |
cout<<"Enter the Radius of the circle:\t"; | |
cin>>r; | |
a=pi*r*r; | |
cout<<"The area of the circle is:\t"<<a<<endl; | |
system("pause"); | |
} |
Output:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.