#include #include #include int main(){ char actual_password[8] = "giraffe"; char user_password[8]; printf("Enter the password: "); scanf("%s", user_password); /* if(strlen(user_password) > 8){ printf("You tried to hack our program! We feel sad about that, and will stop running now.\n"); return 1; } */ if(0 == strncmp(user_password, actual_password, 8)) printf("You can have all the secret plans, because you know the password!\n"); else printf("You don't know the password. Please leave us in peace\n"); printf("user_password = %s, actual_password = %s\n", user_password, actual_password); return 0; }