This WSQ was hard for me. I didn´t knew which type of loops to use, but my friend David García helped me. He showed/explained me how to solve this WSQ.
Here is my code:
And here are some example runs:
WSQ07 – Sum of Numbers by hectorbuenoolea is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.