Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedPlease, 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago