Last active
March 20, 2019 19:41
-
-
Save oneroyalace/7b2c067d32c6615c15dac6e73dea9dd5 to your computer and use it in GitHub Desktop.
ajajroyal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
extern char *gets (char *__s); | |
int main() | |
{ | |
char password[9]; | |
char buffer[9]; | |
strcpy(password,"security"); | |
do | |
{ | |
printf("Welcome to the greatest program in the world!\n"); | |
printf("Enter the password to proceed:\n"); | |
gets(buffer); | |
} | |
while(strcmp(buffer,password)); | |
printf("Actually, this is just a tribute.\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment