Question: Using python3.7.0 to write it use for please modify the following program so that it sums up the digits from I to a numberinput by
modify the following program so that it sums up the digits from I to a numberinput by the user. Use for! E.g., Enter a number: 10 from 1 to 10 is 46. 468,559 numbers on the odometer contain the digit 1. The sum of the digits in the numbers from 1 to one million is 27,000,001 FIGURE 3.76 Outcome of Exercise 81. FIGURE 3.77 Outcome of Exercise 82. 82. Digit Sum Write a program to calculate the total sum of the digits in the integers from 1 to a million. See Fig. 3.77 2. Print all the numbers between 1000 and 10000 that satisfies the following condition. Use for! Write a program to find the four-digit number, call it abed, whose dcba. See 78. Special Number digits are reversed when the number is multiplied by 4. That is, 4 X abcd Fig 3.73. Since 4 times 2178 is 8712 the special number is 2178 FIGURE 3.73 Outcome of Exercise 78
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
