Question: for (int i = 0; i < 3; i++) { // Read a number System.out.print( Read a number: ); num[i] = input.nextInt(); } // Display
for (int i = 0; i < 3; i++) { // Read a number System.out.print( "Read a number: ");
num[i] = input.nextInt(); }
// Display the array reversely
assume you got the inputs from the user as -> 1 4 2
Write Java code to display 2 4 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
