Code:import java.io.*; public class sortem{ public static void main(int args[]) throws IOException { int i=9, min=100, prevMin=0; while (i > 0) { int index=9; while (index >= 0) { if ((args[index] < min) && (args[index] > prevMin)) min = args[index]; index--; } System.out.println( min ); prevMin = min; min = 100; i--; } } }


Reply With Quote

