how can i make a simple program that prints a phrase whenever the user inputs a word. i cant seem to make what i wrote down to work. Im very new, thanks.
#include <stdio.h>
#include <stdlib.h>
int main ()
{
char direction[20];
printf ("where did he go? choose one option.\n");
printf ("station, plaza, bathrooms\n");
scanf ("%s", direction);
printf ("%s", direction);
if (direction == "plaza"){
printf ("its going to be hard to find him now..");
} else if (direction == "bathrooms"){
printf ("lets go rush him right now!!!");
} else if (direction == "car"){
printf ("he must've escaped into the city!");
}
return (0);
}