Advertisement
NadyaMisheva

linq

Feb 16th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. public class Program
  4. {
  5. public static void Main()
  6. {
  7. int[] numbers = Console.ReadLine().Split('#').Select(n => int.Parse(n)).Select(n => 10 * n).ToArray();
  8. Array.Sort(numbers);
  9. Console.WriteLine(string.Join("\n", numbers));
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement