Write a program that asks the user to enter a starting number and an ending number. The program should then print all the numbers between the starting and ending number (including both of them), and the total of all the numbers it printed. You can assume that the starting number will be less than the ending number.
Sample run:
Enter the starting number: 2 Enter the ending number: 4
2
3
4
The total is 9
1
Expert's answer
2017-10-08T00:18:36-0400
Dear Fixley241, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment