+ 1
Why 2016 I got the logic of 20 but not 16
3 odpowiedzi
+ 4
*In very simple words
Because the loop don't have any block, the variable m is increased by 1, because there's a semicolon right after the m++ operation that's where the scope of that for loops ends.
So loop only works for variable m not for n.
that's it, hope you understood.
+ 2
There are no {}. Only the m++ line is in the for loop. n++ runs only once.
+ 2
Thank you very much ..I understood now😄