import java.util.Scanner; public class test1{ public static void main(String[] args){ int []a = new int [10]; Scanner sc = new Scanner(System.in); for(int i=0;i<10;i++){ a[i]=sc.nextInt(); } sort(a); for(int i=0;i<10;i++){ System.out.print(a[i]+" "); }
}
public static void sort( int [] a){ for(int i=0;i<10;i++){ for(int j=i+1;j<10;j++){ if(a[j]<a[i]){ int temp = a[i]; a[i] = a[j]; a[j]=temp; }