Home
C Sci 40 - Lesson 5
Classes
You search for perfect numbers in assignment 9.

The next exercise we are doing problem 10.  This program reads a number of up to 9 digits.   It then prints the number in English.  In other words, if you run the program and enter 12345678, it should respond with "one hundred twenty three million four hundred fifty six thousand seven hundred eighty nine".  If you enter 10000, it ought to print "ten thousand".  This program is intended to give you practice using the switch statement and variable parameters in functions.