Question: Write a program that prompts the user to enter two integers: one named start and one named finish . The program should then calculate and

Write a program that prompts the user to enter two integers: one named start and one named finish. The program should then calculate and print the sum of all the numbers from start to finish (including start and finish in the total). You may assume that start is less than finish (although you could write your program without making this assumption).

This program should use at least two functions: one to get the inputs from the user and one to do the calculations. You can use more if you like.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!