Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int n,t,i=1;
  7.     int c_password = 1999;
  8.  
  9.     cin >> n;
  10.  
  11.     while(n)
  12.     {
  13.        
  14.         if(c_password == n)
  15.         {
  16.             cout << "Correct" <<"\n";
  17.             break;
  18.  
  19.         }
  20.         else
  21.         {
  22.             cout <<"Wrong" <<"\n";
  23.         }
  24.  
  25.     }
  26.  
  27.  
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement