You could do something like this:
#include <stdio.h>
int main()
{
char choice;
do
{
printf("What is your favourite food?\n");
printf("\t1. Pizza?\n");
printf("\t2. Burger\n");
printf("\t3. Nachos\n");
printf("? ");
scanf(" %c", &choice);
} while ('1' > choice || choice > '3');
printf("Your picked: %c\n", choice);
return 0;
}The SPACE in the format string(" %c") before the "%c" means to read and ignore any white space character (e.g., newline from the last input).