Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SortArrayOfNum_1
- {
- class SortArrayOfNum_1
- {
- static void Main(string[] args)
- {
- string input=Console.ReadLine();
- int[] numbers = input.Split().Select(int.Parse).ToArray();
- //build-in sorting method
- Array.Sort(numbers);
- foreach (var num in numbers)
- {
- Console.Write(num+" ");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement