# Find the difference between the greatest and the least 5 -digit number that can be written using the digits $6,2,7,4,3$ each only once.

#### Complete Python Prime Pack

9 Courses     2 eBooks

#### Artificial Intelligence & Machine Learning Prime Pack

6 Courses     1 eBooks

#### Java Prime Pack

9 Courses     2 eBooks

Given :

The given digits are 6, 2, 7, 4, 3.

To do :

We have to find the difference between the greatest and the least 5 -digit number that can be written using the digits $6,2,7,4,3$ each only once.

Solution :

The greatest number formed by the given digits is 76432.

The least number formed by the given digits is 23467.

Therefore,

The difference $=76432-23467$

$= 52965$.

The difference between the greatest and the least 5 -digit number that can be written using the digits $6,2,7,4,3$ each only once is 52965.

Updated on 10-Oct-2022 13:29:37