// Logical operators #include #include int main(void) { // Prompt user for answer char c = get_char("answer: "); // Check answer if (c == 'Y' || c == 'y') { printf("yes\n"); } else if (c == 'N' || c == 'n') { printf("no\n"); } }