If the problem involves interchanging of the digits in the integer then you would need to convert from the digits to numbers and vice versa. To convert the digits to numbers, we need to multiply with the digit with the place value of the digit.
For example, the value of the number formed by the digit 4 in the ten’s place and the digit 3 in the one’s place is 4 × 10 + 3 × 1
This type of digit problems is shown in the following example
The sum of the digits of a two-digit number is 11. If we interchange the digits then the new number formed is 45 less than the original. Find the original number.
Solution:
Step 1: Assign variables :
Let
x =
one’s digit
t =
ten’s digit
Sentence: The sum of the digits of a two-digit number is 11.