include <stdio.h>
define PI 3.14159
double Area(double r);
int main()
{
double Radii,s;
printf("请输入圆的半径:");
scanf("%1f",&Radii);
s=Area(Radii);
printf("半径为%1f的圆的面积是%1f\n",Radii,s);
return 0;
}
double Area(double r)
{
double s;
s=PI*r*r;
return s;
}
https://gitee.com/wangfa23/fg...
https://gitee.com/wangfa23/fg...
https://gitee.com/wangfa23/fg...
https://gitee.com/wangfa23/fg...
https://gitee.com/wangfa23/fg...
https://gitee.com/wangfa23/fg...
https://gitee.com/wangfa23/fg...
https://gitee.com/wangfa23/fg...
https://gitee.com/wangfa23/fg...
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。