The program must accept the radius R of a circle as the input. The program must print the area of the circle with precision upto 2 decimal places.
Note: Use 22.0/7 for PI value. DO NOT use 3.14 for PI.
Example Input/Output:
Input:
5
Output:
78.57
#include <stdio.h>
int main()
{
int radius;
scanf("%d", &radius);
printf("%.2f", (22/7.0) * radius * radius);
return 0;
}