Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char password[10];
- puts("Enter password: ");
- scanf("%s", password, 1);
- if(!strcmp(password, "password"))
- {
- printf("Thanks for logging in...");
- getch();
- }
- else
- {
- printf("Login failed!");
- getch();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement