using System;
using System.Collections.Generic;
public class MyClass
{
public static void Main()
{
int[] array = new int[]{1,3,5,2,34,23,12,6,5};
Sort(array);
for(int i=0;i<array.Length;i++)
{
Console.Write(array[i]+" ");
}
Console.ReadLine();
}
static void Sort(int[] array)
{
int temp;
for(int i=array.Length-2;i>=0;i--)
{
for(int j=0;j<=i;j++)
{
if(array[j]>array[j+1])
{
temp = array[j];
array[j] = array[j+1];
array[j+1] = temp;
}
}
}
}
}