Calculate the Area of the Circle with C language
#include <stdio.h>
#define PI 3.141
int main()
{
double radius, area;
printf("Enter Radius: ");
scanf("%lf", &radius);
area = PI * radius * radius;
printf("%.2lf\n", area);
return 0;
}
Output:-
Enter Radius: 5
78.53
0 Comments