Question: Write a program that will accept a single digit value (this requires input validation) AND have functions that will return and print the following: times_ten()
Write a program that will accept a single digit value (this requires input validation) AND have functions that will return and print the following:
times_ten() - accept an argument and display it multiplied times 10
half() - returns the a value that is half that of the argument
cube() - returns the number cubed
name() - prints the number in word form *note this function does not return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
