69,373
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
#include<stdlib.h>
#define PI 3.14
int main(int argc, char* argv[])
{
int r,h,l;
float S,V;
r=5;
h=12;
l=13;
S=PI*r*l+PI*r*r;
V=PI*r*r*h/3;//这句修改
printf("表面积S=%f\n体积V=%f\n",S,V);
system("pause");
return 0;