#include<stdio.h>
#include<stdlib.h>
int main(void)
{
int height, length, width, volume, weight;
height = 8;//高
length = 12;//长
width = 10;//宽
//输入箱的高
printf("Enter height of box :\n");
scanf("%d", &height);
//输入箱的长度
printf("Enter length of box :\n");
scanf("%d", &length);
//输入箱的宽
printf("Enter width of box :\n");
scanf("%d", &width);
//体积 = 高 * 长 * 宽
volume = height * length * width;
//重量 = 体积 +165 /166
weight = (volume + 165) / 166;
//体积 = 高 * 长 * 宽
printf("Dimensions : %d*%d*%d\n",length,width,height);
//体积和
printf("volume(cubic inches): %d\n",volume );
//重量和
printf("Dimensional weight (pounds) :%d\n", weight);
system("pause");
return 0;