My head hurts a little because that loop was a hard one (for me) still it takes me a whie to figure out what I did there.

But it works so I can’t complain.

 

here it is: https://github.com/VanessaBaeza17/Sum-of-Numbers/blob/master/CODE

 

CC BY 4.0 Sum of Numbers by Ruth Vanessa Baeza Elizalde is licensed under a Creative Commons Attribution 4.0 International License.