import java.util.Scanner;
public class Pro3 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
int n = 0;
//定义数组长度
System.out.println("请输入数组长度:");
n = in.nextInt();
int a[] = new int[n];
//对数组进行赋值
System.out.println("请对数组进行赋值:");
for (int i = 0; i < a.length; i++) {
a[i] = in.nextInt();
}
//将数组逆序输出
System.out.println("输入完毕,下面将数组逆序输出:");
for (int i = a.length-1; i > -1; i--) {
System.out.println(a[i]);
}
}
}