Think through how you might sum n numbers. One way to solve
this is with a loop. Write a program that takes a value n from the user
and adds up the numbers from 1 to n inclusive. You program should use
four different loops: for loop with increment, for loop with decrement,
while loop with increment, while loop with decrement. Then print the
output value of each loop to the screen.
Make a script (you could call it lab03_ec.script) testing your program for at least n = 100 (more testing would be better, see section 3.4 of out book). Be sure to filter the script and directed at the bottom of the script page.
Upload your source code (lab03_ec.cpp) and your script (lab03_ec.script) to the CSHomework system. Each student should upload a copy under their own name.