Java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import java.util.Scanner; public class Main { static final int LIMIT = 10; public static void main (String[] arg) { Scanner sc = new Scanner(System.in); String ch_str = sc.nextLine(); String[] ch_arr = ch_str.split(" "); for (int i=LIMIT-1; 0<=i; i--) System.out.print(ch_arr[i] + " "); } } | cs |