标签:
1 import java.util.Scanner; 2 3 public class Solution 4 { 5 public static void main(String[] args) 6 { 7 Scanner input = new Scanner(System.in); 8 9 System.out.print("Enter 10 numbers: "); 10 11 int[] numbers = new int[10]; 12 13 for(int i = 0; i < 10; i++) 14 numbers[i] = input.nextInt(); 15 16 input.close(); 17 18 for(int i = 9; i >= 0; i--) 19 System.out.print(numbers[i] + " "); 20 } 21 }
标签:
原文地址:http://www.cnblogs.com/wood-python/p/5800520.html