Question: Analysis What is the main problem in the following program? Suggest one correction 01: 02: 03: 04: 05: 06: 07: 08: 09: 10: /Max Capacity

Analysis

Analysis What is the main problem in the following program? Suggest one

What is the main problem in the following program? Suggest one correction 01: 02: 03: 04: 05: 06: 07: 08: 09: 10: /Max Capacity 200 000 000 TONNES / #include int main () double Freight, Total-0; int Counter-0 do printf("Enter freight in tonnes (-1 to exit):" scanf ("%lf", &Freight); 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: Total+-Freight; Counter-Counter+1; while (Freight200000000.0) Total /Counter); printf ("To heavy!In") return 0

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!