Question: ugFive4.java X bugFive4.java > { DebugFive4 > main(String ) // DebugFive4. java // Outputs highest of four numbers import java.util.*; public class DebugFive4 public static

 ugFive4.java X bugFive4.java > { DebugFive4 > main(String ) // DebugFive4.

ugFive4.java X bugFive4.java > { DebugFive4 > main(String ) // DebugFive4. java // Outputs highest of four numbers import java.util.*; public class DebugFive4 public static void main (String args [ ]) int one, two, three, four; int highest; Scanner input = new Scanner (System . in); System. out . print ( "Enter an integer > > ") ; one = input . nextInt( ) ; System. out . print( "Enter an integer > > ") ; two = input. nextInt( ); System. out. print ( "Enter an integer > > ") ; three = input. nextInt( ); System. out . print("Enter an integer > > ") ; four = input. nextInt( ); if (one > two && one > three && one > four) highest = one; else if ( two > one && two > three && two > four) highest = two; else I if ( three > one && three > two && three > four) highest = three; else highest = four; System. out . printIn( "The highest number is " + highest); input . close( )

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 Programming Questions!