2013年10月17日

作业2

摘要: #includeint main(){ int i,n; double r,h,radius,height,volume; double cylinder(double r,double h); /*调用一个函数*/ printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++){ printf("Enter r and h:"); scanf("%lf%lf",&r,&h); /*利用循环算出多种解*/ if((r<=0)||(h&l 阅读全文

posted @ 2013-10-17 09:55 大叔控727 阅读(61) 评论(0) 推荐(0) 编辑

导航