import java.util.Scanner;

 

public class Sorting

{

public static void main(String[] args)

{

int t,i,j;

int a[]= new int[100];

Scanner Input = new Scanner(System.in);

System.out.print(“Masukan banyak data : “);

int n = Input.nextInt();

for(i=1;i<=n;i++)

{

System.out.print(“Input Angka ” + i + ” = “);

a[i] = Input.nextInt();

}

for(i=1;i<=n;i++)

{

for(j=n;j>=i;j–)

{

if(a[j]<a[j-1])

{

t = a[j];

a[j]=a[j-1];

a[j-1]=t;

}

}

}

System.out.println();

for(i=1;i<=n;i++)

{

System.out.println(a[i]);

}

}

}