Question: The second branch outputs More than - 8 0 when the value of userVal is more than - 8 0 . Fill in the

The second branch outputs "More than -80" when the value of userVal is more than -80. Fill in the expression for the first branch that outputs "-80 or less".
Ex: If the input is -82, then the output is:
-80 or less
import java.util.Scanner;
public class Relational {
public static void main(String[] args){
Scanner scnr = new Scanner(System. in);
int userval;
userVal = scnr. nextInt () ;
if Your code goes here {
}
System.out.println("-80 or less");
else {
}
System.out.println("More than -80");
}
}
 The second branch outputs "More than -80" when the value of

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