pls help me understand this code and how did i get 1 as answer.if i edit vue of y result is 0 | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

pls help me understand this code and how did i get 1 as answer.if i edit vue of y result is 0

https://code.sololearn.com/ccaA9EsVCuDi/?ref=app

27th Jun 2017, 4:58 PM
‎ ‏‏‎Anonymous Guy
4 Antworten
+ 1
y++ is executed in every iteration of the loop.
27th Jun 2017, 5:40 PM
Igor B
Igor B - avatar
+ 1
because 7%6 is 1?
27th Jun 2017, 5:03 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
0
but y was not specified in loop
27th Jun 2017, 5:10 PM
‎ ‏‏‎Anonymous Guy
0
it was not linked
27th Jun 2017, 5:11 PM
‎ ‏‏‎Anonymous Guy