using System;
public class Program
{
static int[] BSort(int[] list)
int t;
bool order = true;
int x = 0;
int y = 1;
while(!order || x < list.Length -y)
order = true;
for(x = 0; x < (list.Length -y);x++)
if(list[x] > list[x+1])
t = list[x];
list[x] = list[x+1];
list[x+1] = t;
order = false;
}
y++;
return list;
public static void Main()
int[] list = {11,7,3,5,2};
list = BSort(list);
for(int x = 0; x < list.Length; x++)
Console.WriteLine(list[x]);