Can someone help me out with this program pleases?

This is a discussion on Can someone help me out with this program pleases? within the C Programming forums, part of the General Programming Boards category; Im trying to have all the miles added together and all the gallons added together then divide. For this code ...

Can someone help me out with this program pleases?

Im trying to have all the miles added together and all the gallons added together then divide. For this code I have to have it add as many as I want until I input -1 in for gallons. I have this code correct for the most part its just that its not adding all the miles and all the gallons up. I have counter and counter1 counting how many times I've entered a mile and gallon.