static int[] numbers = { 78, 55, 45, 98, 13 };
static void BubbleSort(int[] arrayToSort)
for (int i = 0; i < arrayToSort.Length - 2; i++)
for (int j = 0; j < arrayToSort.Length - 2; j++)
if (arrayToSort[j] > arrayToSort[j + 1])
inttemp = arrayToSort[j + 1];
arrayToSort[j + 1] = arrayToSort[j];
public static void Main()
for (int x = 0; x < numbers.Length; x++)
Console.WriteLine(numbers[x]);
Console.WriteLine("Hello World");