using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace A_C_Assignment
{
internal class Program
{
static void Main(string[] args)
{
int[] numbers = { 32867, 8350, 26107, 21308, 8903, 23685, 35401, 36996, 20817, 8485,
31746, 26009, 9002, 8048, 24150, 669, 34754, 20947, 17380, 4524,
14095, 29499, 8856, 21632, 30410, 8265, 29626, 5523, 2195, 12641,
36807, 27758, 11452, 23913, 13129, 7322, 11244, 32139, 4689, 18853,
31937, 39167, 2868, 17662, 16683, 9441, 34607, 36610, 31672, 32951,
38041, 16056, 22680, 18912, 28401, 13096, 9657, 21236, 10431, 39694,
17104, 20165, 14309, 14017, 2973, 20049, 24675, 30573, 38300, 4135,
16483, 4053, rest of the numbers...
Console.WriteLine("Ascending: ");
BubbleSort.BubbleAscend(numbers);
Console.WriteLine(string.Join(",", numbers));
Console.ReadKey();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace A_C_Assignment
{
internal class Program
{
static void Main(string[] args)
{
int[] numbers = { 32867, 8350, 26107, 21308, 8903, 23685, 35401, 36996, 20817, 8485,
31746, 26009, 9002, 8048, 24150, 669, 34754, 20947, 17380, 4524,
14095, 29499, 8856, 21632, 30410, 8265, 29626, 5523, 2195, 12641,
36807, 27758, 11452, 23913, 13129, 7322, 11244, 32139, 4689, 18853,
31937, 39167, 2868, 17662, 16683, 9441, 34607, 36610, 31672, 32951,
38041, 16056, 22680, 18912, 28401, 13096, 9657, 21236, 10431, 39694,
17104, 20165, 14309, 14017, 2973, 20049, 24675, 30573, 38300, 4135,
16483, 4053, rest of the numbers...
Console.WriteLine("Ascending: ");
BubbleSort.BubbleAscend(numbers);
Console.WriteLine(string.Join(",", numbers));
Console.ReadKey();
}
}
}