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 ReverseArrayElements
- {
- class ReverseArrayElements
- {
- static void Main()
- {
- string[] input = Console.ReadLine().Split(' ').ToArray();
- for (int i = 0; i < input.Length; i++)
- {
- Console.WriteLine(i);
- }
- for (int i = input.Length; i >= 0; i--)
- {
- Console.WriteLine(i);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment