Question: Please, what is wrong with this C programming it calculates wrong. Using 8,12,10 as input it gives 3600 instead of 960 cm^3 as volume. #include

Please, what is wrong with this C programming it calculates wrong. UsingPlease, what is wrong with this C programming it calculates wrong. Using 8,12,10 as input it gives 3600 instead of 960 cm^3 as volume.

#include 2 int main () printf ) int height ,lenght, width, volume, weight; 7 printf (" Enter the height of the box: " scanf ("%d", &height) ; 10 printf (" Enter length of the box:"); scanf ( "%d", & length) ; 12 13 14 15 16 17 18 19 20 21 printf ("Enter the width of the box:"); scanf ( "%d", &width) ; volume = height1enghtwidth; weight volume +165)/166 printf(" printf(" volume (cubic inches): %d ", volume); dimensional weight (ponds): %d ", weight); 23 2 4 25 26 27 28 eturn0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!