Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Text;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[] firstListArray = Console.ReadLine().Split(',').Select(int.Parse).ToArray();
- Array.Sort(firstListArray);
- Array.Reverse(firstListArray);
- Console.WriteLine(String.Join(",", firstListArray));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment