Advertisement
Guest User

Untitled

a guest
Dec 5th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main(){
  4.  
  5. //initializarea datelor
  6. char nume[50]="Alex";
  7. char password[50];
  8.  
  9. //intrare in cont Alex
  10. printf("username:");
  11. scanf("%s",nume);
  12.  
  13. if(strcmp(nume,"Alex")){
  14. printf("password:");
  15. scanf("%s",password);
  16. if(strcmp(password,"glexaidea19")){
  17. printf("Hello!");
  18. }
  19. else{
  20. printf("You are not Alex! Please go away!");
  21. }
  22. }
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement