Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- char username[10];
- int password=123456;
- int p;
- printf("please insert your username:");
- scanf("%s",&username);
- printf("please insert your password:");
- scanf("%d",&p);
- if(strcmp(username,"itp")==0)
- {
- if(password==p)
- {
- printf("you have succesfully login!");
- }
- else
- {
- printf("your password is incorect!");
- return 0;
- }
- }
- else
- {
- printf("your username is incorect!");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement