Question: Prompt the user to input an integer value using the Scanner class. Call Math.random ( ) to create a second integer value between 0 -
Prompt the user to input an integer value using the Scanner class.
Call Math.random to create a second integer value between
Compare the two variable's values. If the first is greater than the second then swap their values. If the first is not greater than the second then do nothing.
Output the following is less than or equal to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
