Question: Exercise#2: Digit Name Function Write a function named digitName that takes an integer argument and prints the English name for that integer on the computer
Exercise#2: Digit Name Function Write a function named "digitName" that takes an integer argument and prints the English name for that integer on the computer screen. The function should not return a value, If the argument is not in the required range, then the function should print "digit error without the quotation marks but followed by the newline character. Thus, for example, in the range from 0 to 9, inclusive, the statement digitName(6); should print six on the screen; the statement digitName(12); should print digit error on the screen Sample Input/ output: lease enter an integer digit between 0 and 9: 6 ix lease enter an integer digit between e and 9: 12 digit error F5 2/2 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
