Given a number n = 13453687, for instance, it’s possible to extract the last digit by taking the remainder when dividing by 10. We can extract the digit before the last one by dividing the number by 10 and then take the remainder after division by 10. The digit before that can be extracted by dividing the number by 100 and then taking the remainder after division by 10, and so on.