How to code for addition of in between numbers.

Apr 28, 2017 at 4:18pm
How to I code that I get the user to input a start number (e.g. 2) and an end number (e.g. 15) and cause it to add up all the number in between? (e.g. 2+3+4+5+6+7+8+9+10+11+12+13+14+15)
Apr 28, 2017 at 4:45pm
you have to convert the arithmetic progression formula into C++:
https://en.wikipedia.org/wiki/Arithmetic_progression
Apr 29, 2017 at 3:33am
Thank you
Topic archived. No new replies allowed.