用函数cylinder (r,h )计算圆柱体的体积.

#include #define PI 3.1415926main(){float h,r,v;v=cylinder(r,h);/*printf("%3.f\n",v);*/return 0;} cylinder( float r,float h){float v;printf("Enter r :");scanf("%f",&r);printf("Enter h:...

更多阅读