I am unsure about the for loop i understand how to write


The last printf statement is suppose to show the overall average miles per gallon.

I am unsure about the for loop. I understand how to write the code for the number of gallons used and miles driven, but unsure of how to get the overall average to display.

I know that it is total miles / total gallons, but writing the code is unclear to me.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: I am unsure about the for loop i understand how to write
Reference No:- TGS01248315

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)