|
|
@@ -0,0 +1,20 @@
|
|
|
+#include "stdlib.h"
|
|
|
+#include "stdio.h"
|
|
|
+
|
|
|
+int main(void)
|
|
|
+{
|
|
|
+ float height, length, width, volume, weight;
|
|
|
+ printf("Enter height of box: ");
|
|
|
+ scanf("%f", &height);
|
|
|
+ printf("Enter length of box: ");
|
|
|
+ scanf("%f", &length);
|
|
|
+ printf("Enter width of box: ");
|
|
|
+ scanf("%f", &width);
|
|
|
+
|
|
|
+ volume = height * length * width;
|
|
|
+ weight = (volume + 165) / 166;
|
|
|
+
|
|
|
+ printf("Dimensions: %fx%fx%f\n", length, width, height);
|
|
|
+ printf("Volume: %f\n", volume);
|
|
|
+ printf("Weight: %f\n", weight);
|
|
|
+}
|