Question: Write a program that prompts the user to enter two numbers lower and upper (lower < upper), the program finds the sum-digit between lower and
Write a program that prompts the user to enter two numbers lower and upper (lower < upper), the program finds the sum-digit between lower and upper inclusive. For example, if lower and upper are 17 and 22, then find the sum-digit for 17, 18, 19, 20, 21, and 22. The sum 1+7+1+8+1+9+2+0+2+1+2+2 is 36.
Sample input/output:
Enter the lower and upper values: 12 45
The digit-sum between 12 and 45 is 231
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
