HI everybody. I am going to show you how I done the WSQ07. There are different ways to do it, I used “for”.<\/p>\n
Here the image, to start:<\/p>\n
<\/a><\/p>\n This was kind of easy (If you do not know how to use for, look for my post about it, it is on “Masteries” category).<\/p>\n I think all is easy, but the for, I will focus on it:<\/p>\n First, we have “y” as the variable when we accumulate the progress, and “x” the one that\u00a0we increase from the lower bound to the upper one. “y” Starts in zero, and we increase it, first by the lower bound, in the second lap, we have “y=y+x”, this means that “y” will be itself plus the “x” value, that increase every lap until it takes the value of the upper bound.<\/p>\n That’s enough, I guess. Any questions, doubts, comments or whatever you want to tell me feel free to do it.<\/p>\n Here is the code: https:\/\/github.com\/hrglez\/TC1017\/blob\/master\/WSQ07%20-%20Sum%20of%20range<\/a><\/p>\n