Introduction
- In this blog, I am going to tell you about finding an area of a circle in C programming.
Software Requirements
Programming
#include <stdio.h>
#define PI 3.141
int main()
{
float radius, area;
printf("Enter radius of circle\n");
scanf("%f", & radius);
area = PI * radius * radius;
printf("Area of circle : %0.4f\n", area);
return 0;
}
Output
Conclusion
- Thus, the program can be executed and printed successfully.