forked from algorithm-archivists/algorithm-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
24 lines (23 loc) · 722 Bytes
/
Program.cs
File metadata and controls
24 lines (23 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// submitted by Julian Schacher (jspp)
using System;
using System.Collections.Generic;
namespace BubbleSort
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("BubbleSort");
var listBubble = new List<int>() { 1, 2, 6, 4, 9, 54, 3, 2, 7, 15 };
Console.Write("unsorted: ");
foreach (var number in listBubble)
Console.Write(number + " ");
Console.WriteLine();
listBubble = BubbleSort.RunBubbleSort(listBubble);
Console.Write("sorted: ");
foreach (var number in listBubble)
Console.Write(number + " ");
Console.WriteLine();
}
}
}