HW6.2

时间:2022-05-18 06:01:05

HW6.2

 import java.util.Scanner;

 public class Solution
 {
     public static void main(String[] args)
     {
         Scanner input = new Scanner(System.in);

         System.out.print("Enter 10 numbers: ");

         int[] numbers = new int[10];

         for(int i = 0; i < 10; i++)
             numbers[i] = input.nextInt();

         input.close();

         for(int i = 9; i >= 0; i--)
             System.out.print(numbers[i] + " ");
     }
 }

相关文章