This program is about asking a range of integers and then it gives you the sum of the numbers in that range.
For example, the sum from 3 to 6 would be 3 + 4 + 5 + 6 = 18.
Even it was not hard at all, I was having trouble because I had little mistakes that I didn´t noticed at first.
Then the program was working, but the sum of the numbers was wrong so I changed again and finally it work correctly.
This program was about using a simple do – while so it can keep making sum until de first number its equal to the second one.
Here you can see my code: Sum of numbers.
And this is a picture of my program working. Notice that at first you can see the wrong sum of the numbers that I changed at the end.
Sum of numbers by martikaglez is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.