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