#include <stdio.h>
#define PI 3.14159
int main()
{double r,h,s;scanf("%lf %lf",&r,&h);s=PI*2*r*h+2*PI*r*r;printf("%.2lf",s);return 0;
}
详细解决方案
【1305】 圆柱体表面积
热度:29 发布时间:2023-12-06 10:03:10.0
#include <stdio.h>
#define PI 3.14159
int main()
{double r,h,s;scanf("%lf %lf",&r,&h);s=PI*2*r*h+2*PI*r*r;printf("%.2lf",s);return 0;
}