as you only ever evaluate the units column (which is correct) dividing y 10 will move all the digits to the right. as in 4560 / 10 = 456
what i did above is called "dry running" its a skill you should try to develop. its a pen and paper task, but it will really help you understand what code is doing. Just pretend you are the computer and make notes of variable values as you go.