public class Solution { public static void main(String[] args) throws Exception { Scanner sc1 = new Scanner(System.in); int[] array = new int[10]; for(int x = 0; x<10; x++) { array[x] = sc1.nextInt(); } for(int y = 10; y>0; y--) { System.out.println(array[y]); } } }