Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace Largest_3_Numbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<int> number = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
- var result = number.OrderByDescending(x => x).Take(3);
- Console.WriteLine(string.Join(" ", result));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement