I don't usually do this bc I can usually learn code from the internet but I am having trouble with this problem and I can't seem to find any help. Here it goes:
Write a C program that, given a seven-digit number, writes to a file every possible seven-letter word (does not have to be a real word, no dictionaries required) corresponding to that number, i.e. 2=abc 3=def, and so on. There are 2187 such words for each phone numer. Avoid using digits 1 and 0. Note: letters in the output file are uppercase. Do not accept phone numbers with a zero or one. When the user runs the program, prompt them for a phone number. If it is invalid, exit with an appropriate comment.
Thank you everyone!
Trevor