#define PI 3.14
int main()
{
int r=1;
float v;
v=4.0f/3.0f * PI * r * r * r;
printf("Enter r: Volume: %.4f",v);
return 0;
}
#define PI 3.14
int main()
{
int r=1;
float v;
v=4.0f/3.0f * PI * r * r * r;
printf("Enter r: Volume: %.4f",v);
return 0;
}
本文标题:(C)1.2编写球体体积计算
本文链接:https://www.haomeiwen.com/subject/bqqoyttx.html
网友评论