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