I have a number $x$. If I remove the last digit, I get $y$. Given $x-y$, how can I find $x$?
For example x=34 then y=3 given 34-3=31, I have to find 34.
if x=4298 then y=429 , given 4298-429 = 3869 . how can I find 4298 from given 3869?
Answer
Removing the last digit is a division by $10$ (and the last digit is lost).
So $x-y=x-\dfrac x{10}\approx\dfrac{9x}{10}$, and reciprocally $x\approx\dfrac{10(x-y)}9$.
$$31\to34.44\cdots$$
$$3869\to4298.88\cdots$$
For safety, check the solution after truncating.
Attribution
Source : Link , Question Author : Shakhawat Hossain , Answer Author : Community