#include #include int main(void) { char buf[16]; int ok = 0; printf("Type admin password: \n"); gets(buf); if (strcmp(buf, "pass123")) printf("\nWrong password!\n"); else ok = 1; if (ok) printf("\nLogged in as admin.\n"); return 0; }