摘要: 点击查看代码 #include <stdio.h> int main(void) { int length, width, height; float volume, weight; printf("Length:%d\n", length); printf("Width:%d\n", width) 阅读全文
posted @ 2023-04-14 17:54 getPostOne 阅读(43) 评论(0) 推荐(0)
摘要: 点击查看代码 /* * 箱子体积除以166,所得数字大于箱子的实际重量,那么运费就按照空间重量收费 * C语言中,如果两个整数相除,那么结果会被“截短”:小数点后的数字会丢失 * 这会使得重量向下取整,运输公司希望向上取整 * * * 1. 获取用户输入的长宽高信息 * 2. 体积重量 = (体积 阅读全文
posted @ 2023-04-13 21:53 getPostOne 阅读(49) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <stdio.h> int main(void) { // int height = 8; // int length = 12; // int width = 10; // int volume = height * length * width; // print 阅读全文
posted @ 2023-04-13 21:51 getPostOne 阅读(19) 评论(0) 推荐(0)
摘要: 点击查看代码 //#include <studio.h> #include <stdio.h> int main(void) { printf("To C, or not to C, That is the question. \n"); return 0; } #include <stdio.h> 阅读全文
posted @ 2023-04-13 15:33 getPostOne 阅读(22) 评论(0) 推荐(0)