#include
#include
const double PI = 3.14;
main()
{
double r,h,C1,Sa,Sb,Va,Vb;
scanf("%lf%lf",&r,&h);
C1=2*PI*r;
Sa=PI*r*r;
Sb=4*PI*r*r;
Va=4.0/3*PI*r*r*r;
Vb=PI*r*r*h;
printf("C1=%.2lf\nSa=%.2lf\nSb=%.2lf\nVa=%.2lf\nVb=%.2lf\n",C1,Sa,Sb,Va,Vb);
return 0;![圖片](http://img.ask.csdn.net/upload/201510/30/1446167990_902483.png)![圖片](http://img.ask.csdn.net/upload/201510/30/1446167995_432707.png)
lz你的main前面少了東西吧