using System; public class Test{ public static void Main() { int[]Arr=new int[10]; for(int i=0;i<=9;i++) { Console.Write("Введите число ----->"+"\n"); Arr[i]=Console.Read(); } Array.Sort(Arr); Console.ReadKey(); }}
10 23 87 34 1 2 3 45 76 109
Введите число -----> Введите число -----> Введите число -----> Введите число -----> Введите число -----> Введите число -----> Введите число -----> Введите число -----> Введите число -----> Введите число ----->
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!