Question: Using python: Have the user enter a number with 4 or fewer digits. Multiply the number by 9. Print the new number. Add the digits
Using python: Have the user enter a number with 4 or fewer digits. Multiply the number by 9. Print the new number. Add the digits of the product. Print this sum. If this sum is not 9, add the digits of this sum. Print the result. If the input is 8765 The output is: Enter an integer with 4 or fewer digits The original number is 9876; when multiplied by 9 the product is 88884 The sum of the digits of the product is 108 When you add the digits in this sum, the result is 9 Or if the input is: 67 The output should be: Enter an integer with 4 or fewer digits The original number is 67; when multiplied by 9 the product is 603 The sum of the digits of the product is 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
