Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int Timer = 1;
- int x;
- while (Timer > 0) {
- cout << "Please enter any number other than " << Timer << endl;
- cin >> x;
- if (x==Timer) {
- cout << "you failed me" << endl;
- system("pause");
- return 0;
- }
- Timer = Timer + 1;
- }
- cout << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement