CMPSC 250 Python Programming

Write a Python 3 program that does the following:

  1. Prompts the user for an integer greater than 1
  2. Store this integer in a variable called n
  3. Computes sum = 1 + 2 + … + n using the formula

sum = n ( n+ 1) /2

  1. Assuming that the user types 50 your program
  2. prints: The sum of 1 + 2 + … + 50 is 1275
  3. Assuming that the user types 100 your program
  4. prints: The sum of 1 + 2 + … + 100 is 5050
 
"Looking for a Similar Assignment? Order now and Get 10% Discount! Use Code "GET10" in your order"

If this is not the paper you were searching for, you can order your 100% plagiarism free, professional written paper now!

Order Now Just Browsing

All of our assignments are originally produced, unique, and free of plagiarism.

Free Revisions Plagiarism Free 24x7 Support