Sum even numbers from 10-100 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Sum even numbers from 10-100

25th Apr 2017, 8:59 AM
jesse
3 Answers
+ 8
is this your homework? second question about loops in c++ with no details at all where you're stuck.
25th Apr 2017, 9:02 AM
Mario L.
Mario L. - avatar
+ 6
Try to code some of it and if you can't manage, post it here and we'll help. But give it a shot first.
25th Apr 2017, 9:05 AM
Billy Tsouvalas
+ 2
int s = 0; for (int i = 10; i <= 100; s += i, i += 2);
25th Apr 2017, 9:10 AM
Toky R.
Toky R. - avatar