| |
Program to find Area and Circumference of Circle
/*area and circumference of a circle*/
define P 3.1415
main()
{
float r,a,c;
clrscr();
printf("\nEnter the radius :");
scanf("%f",&r);
a=P*r*r;
c=2*P*r;
printf("\nArea of a circle: %0.2f",a);
printf("\nCircumference of a circle : %0.2f",c);
getch();
}
Please send comments to vgdarur.javafive@blogger.com
|