Sum of numbers #WSQ07

I did the sum of numbers WSQ in here, first you need to learn how to use a loop, in my case I used while, after that you have to declare 2 variables, one for the sum and one for the counter, what I did is to ad +1 to the counter variable each time that the loop repeats and adding that variable to the variable sum. 

 

Code: https://www.dropbox.com/s/x71bs221vrrqjuv/sumofnumbers.py?dl=0

CC BY 4.0 Sum of numbers #WSQ07 by Antonio Yosefat Juárez Quintero is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.