Sololearn: Learn to Code
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 4
If we run through the loop, it's easier to understand. x = 6 y = 0 x-- //x = 5 y += x // y = 5 /*next iteration*/ x-- // x = 4 y += x // y = 9 y is bigger than 6, so the loop stops there
26th Jun 2019, 5:23 AM
Airree
Airree - avatar
+ 1
not understand
29th Jun 2019, 4:21 PM
mimi