CISC 1110 Lab 6
a. Using the method of summing a series of terms introduced in class, write a program which finds and then prints the sum of the first 10 integers:
1 + 2 + 3 + … + 8 + 9 + 10
(As a hint, this sum should be 55.)
b. Modify the program so that it can find the sum of a different number of integers. To do this, use one of the other methods introduced in class (using a constant, or reading in a value for a variable to control the loop). For example, make the program find the sum of 13 integers instead of 10 (hint: for 13, the sum should then be 91).
c. Try modifying the program from part b so that it uses other other values instead of 13.