Question: 8 Question 16 Complete the code for the program below that prompts the user to enter three numbers and displays the numbers in DECREASING order.
8 Question 16 Complete the code for the program below that prompts the user to enter three numbers and displays the numbers in DECREASING order. import java.util.Scanner; public class SortNumbers { public static void main(String[] args) { Scanner input = new Scanner (System.in); // Enter three numbers System.out.print("Enter three numbers: "); int numl = input.nextInt(); int num2 input.nextInt (); int num3 = input.nextInt (); // Code to sort numbers > System.out.println("The sorted numbers are " + numl + " " + num2 + " " + num3); } // end main > // end Sort Numbers be
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
