摘要:
/*利用循环计算多个圆柱体体积*/#includeint main(void){ int n,i; double v,r,h;//自定义函数声明,计算圆柱体体积 double cylinder(double r,double h); printf("Enter n:"); scanf("%d",&n); for(i=1;i0&&h>0){ v=cylinder(r,h); printf("v=%.3f\n",v); } } return 0; } double cylinder(double r,doub 阅读全文
posted @ 2013-10-17 09:14
墨墨萧萧
阅读(213)
评论(0)
推荐(0)