To find the greatest number, we will arrange the digits in descending order.
Greatest 5 – digit number in which 5 appears at ten’s place = 98756
To find the smallest number, we will arrange the digits in an ascending order. But we need to be careful here, as 0 is the smallest digit and it will be the first digit when we arrange it in ascending order.
However, if we put '0' as the first number then the number becomes a 4 digit number. As 01253 is a 4 digit number.