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