Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main(void)
- {
- char buff[15];
- int pass = 0;
- printf("\n Enter the password : \n");
- gets(buff);
- if(strcmp(buff, "password"))
- {
- printf ("\n Wrong Password \n");
- }
- else
- {
- printf ("\n Correct Password \n");
- pass = 1;
- }
- if(pass)
- {
- printf ("\n Ok User \n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement