Ajit was asked to form the largest and the smallest five digit number by using digits 4, 9, 7, 2 and 1 without repeating any of the numbers. What is the difference between the largest and the smallest number thus formed?
84942
The largest number formed by using the given digits is 97421 and the smallest five digit number formed is 12479.
So the difference between them can be calculated as
= Largest possible number - Smallest possible number
= 97421 - 12479
= 84942