using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace p7
{
class Program
{
static void Main(string[] args)
{
string linie = Console.ReadLine();
string[] s = linie.Split();
int[] a = new int[s.Count()];
for (int i = 0; i < s.Length; i++)
a[i] = int.Parse(s[i]);
for(int i=0;i<a.Length;i++)
for(int j=i+1;j<a.Length;j++)
if(a[i]>a[j])
{ int aux=a[i]; a[i]=a[j]; a[j]=aux;}
for(int i=0;i<a.Length;i++)
Console.Write(a[i]+" ");
Console.ReadKey();
}
}
}
|