I am writting a program for telephone digits
which is ok i did it
now I want to change the program to prompt a used to enter a telephone number that expresses in letters and outputs the corresponding telephone number in digits. No more than 7 letters
Looks like you've done pretty good. (But try entering '[' for the letter. Google "ASCII table".) I'd get rid of line 28 and move 99..100 into the default case of the switch.
So far, your program works fine for single letters. But now you want to read more than one letter.
Doing something more than once suggests a loop.
I also suggest you move all the stuff that changes a letter into a digit to a function.
Keep in mind, the user can enter the following characters as part of a valid telephone number:
0..9 A..Z a..z ( ) -
Digits you don't need to convert (but you should still print them).
Letters you already know how to convert.
And ( ) and - can be simply ignored.