Project must run five times without stopping

Dec 19, 2014 at 5:56am
Hello. I just finished coding a project which calculates and outputs gas mileage, total distance, and time, but have one more thing to do in which I can't figure out. The program must run five times without stopping. I figure that you use a loop for this, but I don't now which one to use and how to construct it. If someone could give me a lead i'd appreciate it. Thanks
Dec 19, 2014 at 8:27am
http://www.cplusplus.com/doc/tutorial/control/
Your looking for the "for" statement.
Topic archived. No new replies allowed.