Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://www.hackerrank.com/challenges/30-arrays/
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- class Solution {
- static void Main(String[] args) {
- int n = Convert.ToInt32(Console.ReadLine());
- string[] arr_temp = Console.ReadLine().Split(' ');
- int[] arr = Array.ConvertAll(arr_temp,Int32.Parse);
- for(int i = (n-1); i > 0; i--){
- Console.Write(arr[i] + " ");
- }
- Console.Write(arr[0]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement