Check answer, don’t forget to add “break” for each choice, unless it’s desired to fall through.
switch (c) { case 'Y': case 'y': printf("yes\n"); break; case 'N': case 'n': printf("no\n"); break; default: printf(“Sorry\n”); }