// Logical operators #include #include int main(void) { // Prompt user to agree char c = get_char("Do you agree?\n"); // Check whether agreed if (c == 'Y' || c == 'y') { printf("Agreed.\n"); } else if (c == 'N' || c == 'n') { printf("Not agreed.\n"); } }