Menu

[solved] – Question 70470

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

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *