The smallest is 1111 if repeats are allowed.
If not, it is 1235.
From left to right, pick the smallest possible digit every time. This will give you the smallest possible number.
smallest=1234 greatest=4321
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.
1023
12346
1,023.
123478
it would be 0000.01
It is 200000.
11112
From left to right, pick the smallest possible digit every time. This will give you the smallest possible number.
smallest=1234 greatest=4321
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.
012345 or -543210, if negative numbers are permitted.
100122 or, if negative numbers are permitted, -998877
1111
The smallest number is 5,789. The largest is 98,750. The difference is 92,961.