WSQ07- Sum of numbers

This program should give you the sum of a specific range, that you will provide to the computer. So if you type 3 & 9, the program should return the sum of 3+4+5+6+7+8+9.

So.. Captura de pantalla 2016-02-16 a las 8.37.19

First you need to call the two integers of the range, also the result.
I did one work like this when I was in computing remedial.
In this case y & x are the range and x the result.
You keep adding +1 every time until y = z, then you stop.

 

The link to my GitHub is here too..
https://github.com/antonioangelm24/TC101/blob/master/WSQ07

 

CC BY-SA 4.0 WSQ07- Sum of numbers by antonioangelm is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.