Question: According to the given code segment below, assume that user inputs are like x = 1 0 , y = 1 4 , z =
According to the given code segment below, assume that user inputs are like x y z What is the output of this code segment?
public static void mainStringl args
Scanner input new ScannerSystem in;
System.out.printlnEnter a number: ;
int x input.nextInt ;
System.outprintlnEnter a number: ;
int y input. nextInt ;
System.out.printlnEnter a number: ;
int z input. nextInt;
if x y l z y
System.out.printlnNice;
else if x y ll z y
System.outprintlnGood;
else if x y ll z y
System.out.printlnFine;
else if xey ll y z
System.out.printlnwell;
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
