In this WSQ I had to make a program in which the user gave a lower bound and a upper bond and I had to make a sume between all the numbers between them, for example:

Lower bound:1

Upper bound:10

The computer would do the sum 1+2+3+4+5+6+7+8+9+10=55. It was difficult for me to do this activity and I had to went to tutoring with my teacher, after I got the code right I find out that the code was easier.

The code I did for this WSQ:

wsq07.1

Here is the code run in Cygwin:

wsq07.2

CC BY 4.0 #WSQ07-Sum of Numbers by diegoalatorre is licensed under a Creative Commons Attribution 4.0 International License.