cel mai mic apoi cel mai mare nr.par scris cu 3 cifre consecutive

Răspuns :

123
987 descrescator
789 crescator
Cel mai mic:234
Cel mai mare:876