Guest User

Untitled

a guest
Jun 25th, 2018
71
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. #include <string.h>
  3.  
  4. int main(int argc, char **argv){
  5.     char motdepasse[5];
  6.     int trouve = 0;
  7.  
  8.     while(!trouve){
  9.       printf("Mot de passe:");
  10.       scanf("%s",motdepasse);
  11.       if(strncmp(motdepasse, "Toto",4)==0){
  12.           trouve=1;
  13.       }
  14.     }
  15.     printf("Access Granted");
  16. }
Add Comment
Please, Sign In to add comment