标题:求大佬帮忙改错一下。
取消只看楼主
林坤
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2022-11-19
结帖率:0
已结贴  问题点数:20 回复次数:0 
求大佬帮忙改错一下。

#include<stdio.h>                                           /*指令;头*/
int main(void);                                             /*空函数*/
{  
   int height,length, width, volume, weight;               /*参数*/
   height = 8;                                    
   length = 10;
   width = 12;
   volume = height * length * width;                        /*体积表达式*/
   weight = (volume + 165) / 166;                           /*空间质量比*/
   printf("Dimensions:%dx%dx%dx\n", lenght, width, height); /*输出值*/
   printf("Volume(cubic inches):%d\n", volume);
   printf("Dimensional weigth(pounds):%d\n", weight);
   return 0;                                               /*返回值为0*/
}
搜索更多相关主题的帖子: include printf 改错 length int 
2022-11-19 23:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-510705-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.158887 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved