using System.Collections.Generic;
public static void Main()
var list = new List<int> { 1,13, 8, 5,3, 2,7,12,3 };
list.ForEach(delegate(int i)
public static void BubbleSort(List<int> input)
for (int i = 0; i < input.Count - 1; i++)
if (input[i] > input[i + 1])
var lowerValue = input[i + 1];