cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to code for addition of in between n
How to code for addition of in between numbers.
Apr 28, 2017 at 4:18pm
Apr 28, 2017 at 4:18pm UTC
dalvinachin
(3)
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
Apr 28, 2017 at 4:45pm UTC
gunnerfunner
(2127)
you have to convert the arithmetic progression formula into C++:
https://en.wikipedia.org/wiki/Arithmetic_progression
Apr 29, 2017 at 3:33am
Apr 29, 2017 at 3:33am UTC
dalvinachin
(3)
Thank you
Topic archived. No new replies allowed.