//W.A.P to calculate area of circle.
#include<stdio.h>
#include<conio.h>
#define PI 3.14
void main()
{
float radius,area;
clrscr();
printf("Radius of circle:\n");
scanf("%f",&radius);
area=PI*radius*radius;
printf("Areaof circle is %f",area);
getch();
}
OUTPUT:
Comments
Post a Comment