Dividing an integer by 10 shifts the decimal point one place to the left, removing the ones digit (for example, 123 / 10 = 12). Taking the remainder modulo 10 (% 10) then extracts the new rightmost digit, which is the original tens digit (for example, 12 % 10 = 2).