I tried both codes but it always gives me 0, for example I insert 10 which should give me 101 and it gives me 0


Please don’t start a new topic for an existing issue. Add details to your original topic instead: