Advertisement
DrDiagramm

Untitled

Feb 7th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int Timer = 1;
  8. int x;
  9.  
  10. while (Timer > 0) {
  11. cout << "Please enter any number other than " << Timer << endl;
  12. cin >> x;
  13. if (x==Timer) {
  14. cout << "you failed me" << endl;
  15. system("pause");
  16. return 0;
  17. }
  18. Timer = Timer + 1;
  19. }
  20.  
  21.  
  22.  
  23.  
  24. cout << endl;
  25. system("pause");
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement