Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace _07.AppendArrays
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<string> numbers = Console.ReadLine().Split('|').ToList();
- numbers.Reverse();
- List<string> result = new List<string>();
- for (int i = 0; i < numbers.Count; i++)
- {
- result.AddRange(numbers[i].Split(" ", StringSplitOptions.RemoveEmptyEntries).ToList());
- }
- Console.WriteLine(string.Join(" ", result));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement