摘要: #includeint main(void){ int i,n; double x,y; double fee(double x); printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++) { printf("Enter x:"); scanf("%Lf",&x); if(x<=0) printf("输入错误,重新输入"); else{ y=fee(x); } printf("y=%.3f\n", 阅读全文
posted @ 2013-10-17 09:49 plusfancy 阅读(92) 评论(0) 推荐(0) 编辑
摘要: #includeint main(void){ int i,n; double x,y; printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++) { printf("Enter x:"); scanf("%Lf",&x); if(x<=0) { printf("输入错误,重新输入"); } else if(x<=50) { y=0.53*x; } else { y=26.5+0.58*(x-50); } pri 阅读全文
posted @ 2013-10-17 09:04 plusfancy 阅读(99) 评论(0) 推荐(0) 编辑