Area of Circle
#include <stdio.h>
#include <conio.h>
void main()
{
float area, pie=3.14;
int r;
clrscr();
printf ("Enter the Radius of circle:");
scanf ("%d",&r);
area=pie* (r*r);
printf ("Area of circle is : %f",area);
getch();
}
OUTPUT
Enter the Radius of circle: 5
Area of circle is : 78.500000_
No comments:
Post a Comment