Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #define MyNum 5
- int main()
- {
- int number = 0;
- int total = 0;
- do{
- cout << "Enter any number other " << MyNum << endl;
- cin >> number;
- total = total + 1;
- if (total > 9){
- system("CLS");
- cout << "good job you win. " << "\n";
- system("pause");
- break;
- }
- } while (number != MyNum);
- cout << "You are an idiot . " << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment