CMPSC 250 Python Programming Write a Python 3 program that does the following: Prompts the user for an integer greater than 1 Store this integer in a vari
CMPSC 250 Python Programming Write a Python 3 program that does the following:
Prompts the user for an integer greater than 1
Store this integer in a variable called n
Computes sum = 1 + 2 + … + n using the formula
sum = n ( n+ 1) /2
Assuming that the user types 50 your program
prints: The sum of 1 + 2 + … + 50 is 1275
Assuming that the user types 100 your program
prints: The sum of 1 + 2 + … + 100 is 5050