The following program should take a phone number with alpha-numeric and convert it to numeric. The problem i am having is that it give me an syntax error saying that i am messing ; in line 10 and saying that x is not defined. here is the program.
Also can anyone tell me if i am doing the program correctly i pretty much created an array and asked there user enter in the number and did a switch to convert to number and print it out. If i am doing something wrong other then the problem i have stated can anyone let me know. THANKS.