1st Nov 2020, 12:19 PM
Rai
Rai - avatar
3 Answers
+ 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.
1st Nov 2020, 12:27 PM
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~
0_O-[MĂ€gĂĄr_SĂĄm_ÄkĂ _NĂŒllpÞïntĂȘr_ÈxĂ«cĂ©ptïön]~~ - avatar
+ 2
There are no {}. Only the m++ line is in the for loop. n++ runs only once.
1st Nov 2020, 12:28 PM
Paul
Paul - avatar
+ 2
Thank you very much ..I understood now😄
1st Nov 2020, 1:18 PM
Rai
Rai - avatar