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
1,023.
123478
1080, 9989
It is 200000.
11112
it would be 0000.01
From left to right, pick the smallest possible digit every time. This will give you the smallest possible number.
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.
9999999999 100000000