Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- char username,password;
- printf("Username: ");scanf("%s",&username);fflush(stdin);
- printf("Password: ");scanf("%s",&password);fflush(stdin);
- for (int count = 1; count <=3; count++ ){
- if (strcmp(username,"Admin") == 0 && strcmp(password,"admin")){
- printf("Welcome to My System \n");
- break;
- }
- else
- printf ("%d time(s) more",3-count);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement