Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace Sortign
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<int> results = Console.ReadLine().Split(" ").Select(int.Parse).ToList();
- results.Sort(); //нарастващ ред
- results.Reverse();// намаляващ
- Console.WriteLine(string.Join(" ", results));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement