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]);
}
}
}
package com.codegym.task.task07.task0704;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
/*
Flip the array
*/
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]);
}
}
}