plz explain me if u can.........that what r the changes that should be made in my code above in those 2 loops when the array elelments have to be printed in ascending as well as in descending order........
so that i can know the logic behind that..........
i'll be highly greatful to u........