I have a program like (thats an example)
Thank you!!!Code:#include <iostream> using namespace std; int main() { int x,y; cout<<"Insert a number\n"; cin>> x; cin.ingore(); cout<<"You have entered "<< x <<"\n"; cout<<"What do you want to do 1.Go back\n2.Exit\n"; if ( y == 1){ ...... //what should i put here to execute a loop to the beggining? } if ( x == 2 ){ ........//What should i put here to automaticaly exit the program? } cin.get(); }