Advertisement
minnera

#30daysofcode #day7

Oct 4th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. //https://www.hackerrank.com/challenges/30-arrays/
  2.  
  3. using System;
  4. using System.Collections.Generic;
  5. using System.IO;
  6. using System.Linq;
  7. class Solution {
  8.  
  9.     static void Main(String[] args) {
  10.         int n = Convert.ToInt32(Console.ReadLine());
  11.         string[] arr_temp = Console.ReadLine().Split(' ');
  12.         int[] arr = Array.ConvertAll(arr_temp,Int32.Parse);
  13.         for(int i = (n-1); i > 0; i--){
  14.             Console.Write(arr[i] + " ");
  15.         }
  16.         Console.Write(arr[0]);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement