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