char cA;do{ cA = getch();if( cA == 'Y' ) { printf("Yes"); }else if( cA == 'N' ) { printf("Exit"); }else { printf("Keeping input"); }}while( cA!='N');