#include<iostream> #include<string> using std::string; using std::cout; using std::cin; int main() { int choice; do { cout<<" Enter 0 to quit, 1 to play the game"; cin >> choice; switch(choice) { case 0: cout<<"\n thanks for nothing\n"; return 0; case 1: cout<<"\n Yooo, lets play\n"; break; } }while(choice!=0); }