图中报错意思:
修改后的代码:
#include
#define PI 3.14159
int main()
{
int R; //R为圆的半径
double perimeter; //圆的周长
double area; //圆的面积
R = 5;
perimeter = 2.0*PI*R;
area = PI* R*R;
printf("%f,%f", perimeter, area);
return 0;
}
运行截图:
这样写
/*方便你复制*/
#include
#define PI 3.14159
int main()
{
int R;
float perimeter,C;
float area;
C=PI;
R=5;
perimeter=2.0*C*R;
area=C*R*R;
printf("%f,%f",perimeter,area);
return 0;
}
望采纳