# includeint main(void){ double x,y; printf("Enter x (x>=0):\n"); scanf("%lf",&x); if(x<=15){ y=4*x/3; } else{ y=2.5*x-10.5; } printf("y=f(%f)=%.2f\n",x,y); return 0;}
本文共 283 字,大约阅读时间需要 1 分钟。
# includeint main(void){ double x,y; printf("Enter x (x>=0):\n"); scanf("%lf",&x); if(x<=15){ y=4*x/3; } else{ y=2.5*x-10.5; } printf("y=f(%f)=%.2f\n",x,y); return 0;}
转载于:https://www.cnblogs.com/chaoyue0806/p/3351766.html