You can divide it by 10 and then save it as integer to get the first digit(10). Then you can divide it again by 10 using modulo division to get the second digit(6). If the number is bigger then you can increase the division to get the other digits to 100, 1000, 10000 etc.