Thursday, July 25, 2013

Program to calculate the area of circle

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float r,a;
cout<<"Enter the radius of circle";
cin>>n;
a=(22/7)*r*r;
cout<<"Area of the circle is : ";<<a;
getch();
}

No comments:

Post a Comment

Popular Posts