Skip to content

Instantly share code, notes, and snippets.

@memememomo
Created July 27, 2017 17:31
Show Gist options
  • Save memememomo/9687e01835fd9743884ee4c492f60be8 to your computer and use it in GitHub Desktop.
Save memememomo/9687e01835fd9743884ee4c492f60be8 to your computer and use it in GitHub Desktop.
using System.Linq;
public class Hello{
public static void Main(){
var n = int.Parse(System.Console.ReadLine());
var a = System.Console.ReadLine().Split(' ');
for (var i=n-1; i>=0; i--) {
System.Console.Write(a[i]);
if (i-1 >= 0) {
System.Console.Write(" ");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment