Advertisement
noor017

Fixed Password

Jun 13th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int password;
  5.  
  6.     while(scanf("%d", &password)==1)
  7.     {
  8.  
  9.         if(password == 2002)
  10.         {
  11.             printf("Acesso Permitido\n");
  12.         }
  13.  
  14.         else
  15.         {
  16.             printf("Senha Invalida\n");
  17.         }
  18.     }
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement