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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!