Sunday 5 May 2013

Program In C++ to calculate Area of Circle

#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
float r,a;
cout<<"enter radius ";
cin>>r;
a=3.14*r*r;
cout<<"The area is "<<a;
getch();
}

No comments:

Post a Comment