Question: Write a Java program: *3.8 (Sort three integers) Write a program that prompts the user to enter three integers and display the integers in non-decreasing
Write a Java program:

*3.8 (Sort three integers) Write a program that prompts the user to enter three integers and display the integers in non-decreasing order. public class Exercise3_8 f public static void main(String[l arga) java.util.Scanner input = new java.util.Scanner ( Sygtem. in); System, out.print ("Enter three integers: "); int num1 = input, nextInt(); int num2 = input.nextInt(); int num3 = input,nextint(); if ( num1 > num2) \& int cemp = num1: num 1= num 2 ; num 2 = temp 1 if ( num 2> num3) \& 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
