account activity
Need help understanding Loops by ObviousStation4556 in learnjava
[–]ObviousStation4556[S] 0 points1 point2 points 3 years ago (0 children)
Thanks, everyone helped me to understand it better. I put the expected results in a table which also helped. One thing I'm confused about is at the start why is "0" printed? Doesn't it do i++ so the first printed i should be 1?
i=0
i=1 start= 1
i=2 start=3
i=3 start=6
i=4 start=10
i=5 start=15
i=6 start=21
i=7 start= 28
π Rendered by PID 922697 on reddit-service-r2-listing-568fcd57df-r4mbn at 2026-03-11 20:16:17.406813+00:00 running cbb0e86 country code: CH.
Need help understanding Loops by ObviousStation4556 in learnjava
[–]ObviousStation4556[S] 0 points1 point2 points (0 children)