Solution for Exercise 13-9

ex1309

#include <stdio.h>
#include <string.h>

int main()
{
    char password[]="taco";
    char input[15];

    printf("Password: ");
    scanf("%s",input);

    if(strcasecmp(input,password)==0)
        puts("Password accepted");
    else
        puts("Invalid password. Alert the authorities.");

    return(0);
}