Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.      
  6. int main(int argc, char *argv[])
  7. {
  8.     int number;
  9.    
  10.     cout << "Please write the number 1, any other number will not work!\n";
  11.     cin >> number;
  12.         if (number == 10)
  13.         {
  14.         cout << "You have typed the correct number, you won!\n";
  15.              }
  16.         else
  17.         {
  18.         cout << "You have typed an incorrect number, try again please!\n";
  19.              }
  20.    
  21.     system("PAUSE");
  22.     return EXIT_SUCCESS
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement