#include <iostream>
using namespace std;
int main()
{
int num;
char reply;
do
{
cout << " Please enter a positive integer between 59 and 78 "<< endl;
cin >> num;
if(num >= 58 && num <=78){
cout << " YOU WIN " << endl;
}
else
{
cout << " YOU LOSE " << endl;
}
cout << " Do you want to try another number again " << endl;
cout << " enter 'Y' or 'y' to continue " << endl;
cin >> reply;
while(reply == 'Y' || reply == 'y');
}
//cin.get();
//cin.ignore();
return 0;
}

New Topic/Question
Reply




MultiQuote




|