Jan 29, 2013

To determine area of circle

/*To determine area of circle*/

#include<stdio.h>
#include<conio.h>
#define PI 3.1416
void main()
{
clrscr();
int D;
float area;
printf("D=?");
scanf("%d",&D);
area=(PI*D*D)/4.0;
printf("Area of the circle=%.2d",area);
getch();
}

No comments:

Post a Comment

Thank you for visit this site. You will get many programming news from here and learn programming very easily.

Popular Posts