Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace ReverseArrayOfStrings
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] arr = Console.ReadLine().Split().Reverse().ToArray();
- Console.WriteLine(string.Join(' ', arr));
- }
- }
- }
- Тарикатско решение:
- using System;
- using System.Linq;
- namespace ReverseArrayOfStrings
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine(string.Join(' ', Console.ReadLine().Split().Reverse()));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement