Showing posts with label To determine area of circle. Show all posts
Showing posts with label To determine area of circle. Show all posts

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();
}

Popular Posts