Computer Science, asked by fa19cse055, 8 months ago

Develop a C++ program that uses a while statement to input the

miles driven and gallons used for each trip by an automobile. The

program should calculate and display the miles per gallon obtained

for each trip and print the combined miles per gallon obtained for all

tankful up to this point.

Exp:

Enter miles driven (-1 to quit): 287

Enter gallons used: 13

MPG this trip: 22 .07
Total MPG: 22.07

Enter miles driven (-1 to quit): 200

Enter gallons used: 10

MPG this trip: 20.00

Total MPG: 21 .67​

Answers

Answered by karshrabanti
2

Answer:

c465477664:;+((?!##37)!;:

Similar questions