Write a function, nine, that takes a single positive int as…
Write a function, nine, that takes a single positive int as an argument. The function will print out a series of numbers as defined: The first number is the argument to the function When the number is 9, the series ends If the number is a single digit, the next number is three times the current number Otherwise, the next number is the sum of the digits in the current number Example nine(9)9nine(13450987)13450987 37 10 1 3 9nine(59)59 14 5 15 6 18 9
Read Details