About Me

My photo
Raipur, Chhattisgarh, India
Hi , I am Amit Thakur. I have worked as a QA Engineer for two years and as a Java Developer for one year in NIHILENT TECHNOLOGIES PVT. LTD., Pune.Currently I am working as DEAN (Research & Development) in Bhilai Institute of Technology, Raipur.

Tuesday, August 27, 2013

Area of Circle

Shape : Circle
   Formula : Π * r * r
 Definition :
  1. Ellipse in which the two axes are of equal length
  2. Plane curve generated by one point moving at a constant distance from a fixed point
  3. You can compute the area of a Circle if you know its radius.
Program :
#include
#include
void main()
{
float radius,area;
clrscr();  // Clear Screen

printf("Enter the radius of Circle : ");
scanf("%d",&radius);

area = 3.14 * radius * radius;

printf("Area of Circle : %f",area);
getch();
}
Output :
Enter the radius of Circle : 2.0
Area of Circle : 6.14

No comments: