write a java program to arrange the numbers in the give description below..?

Soniya

New member
write a java program to read n numbers and put the maximum number on middle then the next largest on right ,then the next largest on the left and so on....
EXAMPLE:
input: 7 9 2 5 6
output: 2 6 9 7 5
 
Back
Top