Hello friends,I am new to this board and not an experience programmer.I am still learning c++.
I need ur help with this simple code.
The output should be as follows
Enter the gallons used(-1 to end input): some value
Enter the miles driven: some value
The miles/gallon for this tank was: some value
repeat this
.
.
.
.
.
.
.
till user enters -1 for gallons
then calculate the total average of all entered data
The total average comes out: some value
hope u get that.If u do ,plz help me asap but remember u can only use
if,if/else,while,do/while,switch and for structures/statements.
I have attached my code so that u can check it and correct it.