Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _02.Append_Lists
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<string> lists = Console.ReadLine().Split('|').ToList();
- lists.Reverse();
- foreach (var str in lists)
- {
- Console.Write(str.Trim() + " ");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement