money=10000; cout<< your money is <<money; exit(); } else if(ans== p ) { if (help2<=0) { cout<< wala ka nang natitirang 50-50\n << do you want to take the money or continue the game \n << press [t] to take the money and and [y] to continue\n ; do { cin>>choice; if (choice== t ) { cout<< your money is P <<money; exit(); } else if(choice== y )ans= o ; }while(choice!= t &&choice!= y ); } else { cout<< the choices now are: a & d\n ; help2=help2-1; } Else cout<< invalid input\n ; }while(ans!= a && ans!= b && ans!= c && ans!= d );