Today I learned to do loops, even though it was a simple addition I didn’t know what mathematical function I needed, so I checked the code from one of my classmates: https://github.com/CarlosGallegosT/Codes007/blob/master/Sum%20of%20Numbers ; and I realized the only thing I didn’t have was adding the previous number to the next one ( c=c+a; )
Here is my code:
https://github.com/marinaruelas/numbers/blob/master/sum
Numbers
Taken on November 26, 2009
Sum of Numbers by marinaruelas is licensed under a Creative Commons Attribution 4.0 International License.