Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Telerik
- {
- using System;
- using System.Linq;
- class Program
- {
- static void Main(string[] args)
- {
- int[] numbers = Console.ReadLine().Split(",").Select(int.Parse).ToArray();
- Console.WriteLine(
- string.Join(", ",
- numbers.Where(x => x < 0).Concat(numbers.Where(x => x == 0))
- .Concat(numbers.Where(x => x > 0))));
- }
- }
- }
Add Comment
Please, Sign In to add comment