Loops and Iterations

How someone help me understand how the output of the problem below is “0,1,2”? I just can’t read the code?


Is that surprising for you? Would you rather say some other answer should be correct? Try going by hand through the code step-by-step and see what you are getting.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.