Hi please help my program listing 2 digits multiplication 10 lines on screen, pauses and ask if you want to continue or quit by pressing 'Q' it should quit but it doesn't. It could be a very simple problem, but I just cannot figure it out. Please help if you can, thanks.
Code:int main() { clrscr(); cout << "\t\t\tTWO DIGITS MULTIPLICATION" << endl; cout << "\t\t\t=========================" << endl; for (int num1 = 11; num1 <= 99; num1++) { for (int num2 = 11; num2 <= 99; num2++) { cout << "\t\t\t" << num1 << " * " << num2 << " = " << num1 * num2 <<endl; if (num2 % 10 == 0) { cout << "\n\t\t\tPress enter to continue, Q to quit."; char getkey=toupper(getch()); if (getkey == 'Q') break; cout << "\n\n"; } } cout << endl; } return(0); }