What this program does is take in a lowercase letter from the keyboard
and outputs the number it corresponds to on the telephone keypad. What happens is that once you enter in a letter, it gives you the proper output and loops around again w/o asking you if you want to continue. Thanks for any help.
Anyway, my output looks like this:
Please enter a lowercase letter.
a
The letter a corresponds to digit 2
Would you like to enter another letter? [y/n]
Please enter a lowercase letter.
The letter you have entered in invalid.
Please enter a lowercase letter.
b
The letter b corresponds to digit 2
Would you like to enter another letter? [y/n]
Please enter a lowercase letter.
The letter you have entered in invalid.
Please enter a lowercase letter.
Heres the code:
The Source
and outputs the number it corresponds to on the telephone keypad. What happens is that once you enter in a letter, it gives you the proper output and loops around again w/o asking you if you want to continue. Thanks for any help.
Anyway, my output looks like this:
Please enter a lowercase letter.
a
The letter a corresponds to digit 2
Would you like to enter another letter? [y/n]
Please enter a lowercase letter.
The letter you have entered in invalid.
Please enter a lowercase letter.
b
The letter b corresponds to digit 2
Would you like to enter another letter? [y/n]
Please enter a lowercase letter.
The letter you have entered in invalid.
Please enter a lowercase letter.
Heres the code:
The Source