ok so im trying to write a simple program that does the following:
For a given natural number n find the minimal natural number m formed with the same digits. E.g. n=3658, m=3568.
i am a total noob at pascal and programming. i was close to figuring out average but i couldnt manage. could you guys help me?