/* YouLikes.c (c) Kari Laitinen http://www.naturalprogramming.com/ 2013-11-20 File created. 2013-11-20 Last modification. */ #include int main() { printf( "\n Do you like the C programming language? " "\n Please, answer Y or N : " ) ; char character_from_keyboard = getchar() ; switch ( character_from_keyboard ) { case 'Y': case 'y': printf( "\n That's nice to hear. \n" ) ; break ; case 'N': case 'n': printf( "\n That is not so nice to hear. " "\n I hope you change your mind soon. \n " ) ; break ; default: printf( "\n I do not understand \"%c\".\n", character_from_keyboard ) ; } }