#include <stdio.h>
int main() {
const float PI = 3.14;
int r;
float area;
printf ("enter the radius of the circle: ");
scanf("%d", &r);
area = PI *r *r;
printf("\n the area of the circle : %.2f", area);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: