摘要: #includeint main(void){ int i,n; double h,m; printf("Enter n:"); scanf("%d",&n); for(i=1;i0)&&(h50){ m=26.5+0.58*(h-50); printf("m=%.2f\n",m); } } return 0;} 阅读全文
posted @ 2013-10-17 09:52 吕鼎鼎19950427 阅读(107) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ double h,m; printf("Enter h:"); scanf("%lf",&h); if(h0)&&(h50){ m=26.5+0.58*(h-50); printf("m=%.2f\n",m); } return 0;} 阅读全文
posted @ 2013-10-17 09:30 吕鼎鼎19950427 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ int i,n; double h,r,v;/*函数的声明*/ double cylinder(double r,double h); printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++){ printf("Enter r and h:\n"); scanf("%lf%lf",&r,&h); if((r<0)||(h<0)){ printf("输入错误" 阅读全文
posted @ 2013-10-17 09:01 吕鼎鼎19950427 阅读(269) 评论(0) 推荐(0) 编辑