Friday, 21 March 2014

simple program by which you can find area of circle

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main (void)
{
   float area,pie,radius,sqr;
   clrscr();
   printf("\nEnter the radius:");
   scanf("%f",&radius);
   pie=3.14;
   area=pie*(sqr=pow(radius,2.00));
   printf("\nThe area is %.2f",area);
   getch();
}

No comments:

Post a Comment