For Programming Assignment 5, you are required to write a Python program that asks the user for two positive integer values. It would then use a while loop to compute the sum of all integers between (and including) the two inputs before printing out the sum. Sample runs would be as follows. [MO 5.5]

Enter first positive integer: 2

Enter second positive integer: 5

The sum of integers between 2 and 5 (inclusive) is 14

Enter first positive integer: 4

Enter second positive integer: 6

The sum of integers between 4 and 6 (inclusive) is 15

Submit your program as a scriipt file named “COS-101_PA5_.py”.

The post For Programming Assignment 5, you are required to write a Python program that as appeared first on Succeed Papers.