A program where a user enters digits which returns words using arrays
Okay so i have an assignment, where i have to create a user input for a user to enter 2 digits or less, and its suppose to return the corresponding number in words. I have to use arrays to do this. The program has to use three arrays: one that shows an index of the ones digits from zero to nine, a teens place for numbers ten to nineteen, and a two digits place, for numbers twenty to nintey. Each of these three methods (Mine are called "onesPlace", "printTeens", and "twoDigits") are called outside of "main" in messages that will ask the user for the digits and then print the results.
After hours of thinking, i've finally figured this out.