using System;
namespace Insertionso
{
class Program
{
static void input()
{
}
static void Main(string[] args)
{
int n;
Console.WriteLine("size buffer: ");
n = int.Parse(Console.ReadLine());
var ip = new int[n];
int j = 0;
while (j < n)
{
Console.WriteLine("Input {0}: ", j);
ip[j] = int.Parse(Console.ReadLine());
j++;
}
Console.WriteLine("min: ");
int i = 0;
while ( i < ip.Length )
{
int k = 0;
while ( k < ip.Length)
{
if (ip[k] > ip[i])
{
int temp = ip[i];
ip[i] = ip[k];
ip[k] = temp;
}
k++;
}
i++;
}
Console.Write("MINIMUM: ");
int l = 0;
while (l < ip.Length)
{
Console.Write(ip[l] + " ");
l++;
}
Console.ReadKey();
}
}
}