smallest=1234
greatest=4321
From left to right, pick the smallest possible digit every time. This will give you the smallest possible number.
It is difficult to interpret exactly what you are trying to ask. If you allow your five digit number to have leading zeroes and do not allow negative numbers, then 00000 - 99999 = -99999 is the smallest number. If you do allow negative 5 digit numbers, then (-99999) - 99999 = -199998 is the smallest number.
The smallest is 1111 if repeats are allowed. If not, it is 1235.
1023
12346
9630
123478
1,023.
1080, 9989
it would be 0000.01
11112
It is 200000.
From left to right, pick the smallest possible digit every time. This will give you the smallest possible number.
The greatest 9-digit number using three different digits is 999888777, formed by using the digits 9, 8, and 7 in descending order. The smallest 9-digit number using three different digits is 100000000, created with the digits 1, 0, and 0. This arrangement ensures that the number starts with 1, followed by the zeros to maintain the smallest value.
012345 or -543210, if negative numbers are permitted.
It is difficult to interpret exactly what you are trying to ask. If you allow your five digit number to have leading zeroes and do not allow negative numbers, then 00000 - 99999 = -99999 is the smallest number. If you do allow negative 5 digit numbers, then (-99999) - 99999 = -199998 is the smallest number.
The smallest number is 5,789. The largest is 98,750. The difference is 92,961.