if not,try this.It's help you to know how to find/print the value of a circle
area in C programming language.
Code to print the value:
#include<stdio.h>
#define PI 3.1416
int main()
{
float circle_area, r;
printf("Enter the value of radius: \n");
scanf("%f", &r);
circle_area = PI *r * r;
printf("The circle area is: %.2f\n", circle_area);
return 0;
}
OR,
#include<stdio.h>
int main()
{
float circle_area, r, PI=3.1416;
printf("Enter the value of radius: \n");
scanf("%f", &r);
circle_area = PI * r * r;
printf("The circle area is: %.2f\n", circle_area);
return 0;
}
The Output is:
Face problems?No problem.You can share your problems by commenting below.or you can leave a massage us.Thank you.