In python,
Posted: Tue Jul 12, 2022 8:19 am
In python,
Create a main function that prompts for an integer and prints out the integer using words. For example: 138 will print "one three eight." Use a dictionary to represent digits as keys and words as values. Here is a sample run: Enter an integer to convert to words: 24 two four Enter an integer to convert to words: 2022 two zero two two
Create a main function that prompts for an integer and prints out the integer using words. For example: 138 will print "one three eight." Use a dictionary to represent digits as keys and words as values. Here is a sample run: Enter an integer to convert to words: 24 two four Enter an integer to convert to words: 2022 two zero two two