Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace MergingLists
- {
- class Program
- {
- static void Main(string[] args)
- {
- char[] splitters = new char[]
- {
- ' ',
- '|'
- };
- int[] nums = (Console.ReadLine()
- .Split(splitters , StringSplitOptions.RemoveEmptyEntries)
- .Select(int.Parse)
- .ToArray());
- Console.WriteLine(string.Join(" ", nums));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement