#include<stdio.h>
/* Function declaration */
float calculateCircleArea(float);
int main() {
float radius, area;
printf("Enter the value of Radius: ");
scanf("%f", &radius);
area = calculateCircleArea(radius);
printf("\nArea of the circle: %f", area);
return 0;
}
/* Function definition to calculate area of circle */
float calculateCircleArea(float radius) {
float area;
area = 3.14 * radius * radius;
return area;
}
1 Answer