#include#include#define PI 3.14main(){float r,h,s,v;scanf("%f %f",r,h);s=2*PI*r*r+2*PI*r*h;v=PI*r*r*h;printf("s=%f v=%f",s,v);system("pause");}再这个计算圆柱体积和面积的时候出现了错误,,请诸位帮帮我。。谢谢。。
scanf("%f",&r); 查看、学习scanf函数的相关信息
scanf("%f %f",&r,&h);