Advertisement
PROFESSOR_AIH

Fixed Password

Apr 3rd, 2022
50
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 pass;
  5.     while(1)
  6.     {
  7.         scanf("%d",&pass);
  8.         if(pass!=2002)
  9.             printf("Senha Invalida\n");
  10.         else if(pass==2002)
  11.         {
  12.             printf("Acesso Permitido\n");
  13.             break;
  14.         }
  15.     }
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement