发布网友 发布时间:2024-10-24 09:55
共1个回答
热心网友 时间:2024-11-05 02:03
也没说用啥语言,用C语言写了
#include <stdio.h>
#define PI 3.1415926
int main(void)
{
float r = 0.0;
float s = 0.0;
printf("Please input the radius of circle: \n");
scanf("%f", &r);
s = PI * r * r;
printf("The area of the circle is %f\n", s);
return 0;
}