How to divaded one number to digits and save every digit in variable

I tried but its not works well
Its 1 time successes and 4-5 doesn’t
How can I solve it correctly ?