#include #include int main(void) { char password[] = "Geheim", buffer[10]; printf("Geef password: "); scanf("%s", buffer); if (strncmp(password, buffer, 7) == 0) { printf("Toegang tot geheime informatie."); } else { printf("Onjuist password!"); } fflush(stdin); getchar(); return 0; }