Sunday, 5 May 2013

Program In C to calculate Area of Circle

#include<stdio.h>
#include<conio.h>
void main()
{
float radius,area;
clrscr();  // Clear Screen

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

area = 3.14 * radius * radius;

printf("\nArea of Circle : %f",area);
getch();
}

No comments:

Post a Comment