using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ordonfis
{
class Program
{
static void Main(string[] args)
{
StreamReader sr = new StreamReader("f.txt");
StreamWriter sw = new StreamWriter("g.txt");
string l = sr.ReadLine();
string[] s = l.Split(' ');
List <int> x = new List<int>();
foreach (string a in s)
{
x.Add(Int32.Parse(a));
}
x.Sort();
foreach(int a in x)
sw.Write(a + " ");
sr.Close();
sw.Close();
}
}
}
|