please solve it with full explanation!
Attachments:
Answers
Answered by
1
s 1, i 10
1st iteration
s is 1 plus 10
I is 10 minus 2
s 11, i 8
2nd iteration
s is 11 plus 8
I is 8 minus 2
s 19, I 6
3rd iteration
s is 19 plus 6
I is 6 minus 2
s 25, I 4
4th iteration
s is 25 plus 4
I is 4 minus 2
s 29, I 2
5th iteration
condition false ( I is not greater than equals to 3)
exit loop
SOP LINE- Sum = 29
Similar questions