W
wahid
• Using getch() command, write a program that
will echo user key strokes onto the screen, and
if the user presses a letter (A-Z, a-z), the
echoed character will always be a capital
letter. The program terminates when the user
presses the ESC key
• (Hint, ASCII code for ESC is 27, for ‘A’ is 65, and
for ‘a’ is 97. the values are given in decimal
notation)
will echo user key strokes onto the screen, and
if the user presses a letter (A-Z, a-z), the
echoed character will always be a capital
letter. The program terminates when the user
presses the ESC key
• (Hint, ASCII code for ESC is 27, for ‘A’ is 65, and
for ‘a’ is 97. the values are given in decimal
notation)