Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main(void)
- {
- int flag = 0;
- char passwd[10];
- gets(passwd);
- if(0 == strcmp("hunter2", passwd))
- flag = 1;
- if(flag)
- printf("\n Correct Password \n");
- else
- printf("\n Incorrect Password \n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement