Find a four-digit number with four different digits, that is equal to the number formed by its digits in descending order minus the number formed by its digits in ascending order.
The required number is 6174, since:
7641
- 1467
---------------
6174
------------
Will post explanation later
Edited on September 5, 2022, 1:09 am