You are viewing a single comment's thread. Return to all comments →
java
public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] arr = new int[n]; for(int i=0; i < n; i++){ arr[i] = in.nextInt(); } for(int i=n-1; i>=0; i--){ System.out.print(arr[i]+" "); } in.close(); }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 7: Arrays
You are viewing a single comment's thread. Return to all comments →
java