Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main(){
- //initializarea datelor
- char nume[50]="Alex";
- char password[50];
- //intrare in cont Alex
- printf("username:");
- scanf("%s",nume);
- if(strcmp(nume,"Alex")){
- printf("password:");
- scanf("%s",password);
- if(strcmp(password,"glexaidea19")){
- printf("Hello!");
- }
- else{
- printf("You are not Alex! Please go away!");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement