+ 1
How sum += i , right answer 16?
i = 8, sum = 0
6 ответов
+ 3
If you iterate that statement twice, sum will be 16.
+ 2
Please post the complete code, otherwise nobody can know what you are talking about
+ 1
if sum += i happens, sum will be 8
+ 1
No, if you did that you would have -8
0
If answer is 16 then you have to put - sign at place of +
0
did they say you were supposed to loop twice?