repeating program

How can I repeat program.
The problem is that when program gives the result, as soon as we hit a key on the keyboard, it exits.
closed account (48T7M4Gy)
http://www.cplusplus.com/reference/istream/istream/get/?kw=cin.get
for loop
while loop
if statement
or a boolean will all allow you to re-run a program
Topic archived. No new replies allowed.