Loading... ```c #include <stdio.h> int main() { float length, width, height, weight; float consum; printf("输入物品长、宽、高、重量:"); scanf("%f%f%f%f", &length, &width, &height, &weight); if (length >= 1 || width >= 1 || height >= 1 || weight >= 30) printf("不予邮寄"); else { consum = 0.5 + weight * 2; printf("邮费:%f", consum); } return 0; } ``` ![image.png](https://www.xpblog.cn/usr/uploads/2023/09/3842179512.png) 最后修改:2023 年 09 月 25 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏噢~