Page 1 of 1

In python,

Posted: Tue Jul 12, 2022 8:19 am
by answerhappygod
In python,
In Python 1
In Python 1 (10.6 KiB) Viewed 29 times
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