Question: The second branch outputs Fewer than or equal to - 7 0 when the value of userlnput is fewer than or equal to -

The second branch outputs "Fewer than or equal to -70" when the value of userlnput is fewer than or equal to -70. Fill in the expression for the first branch that outputs "More than -70.
Ex: If the input is -68, then the output is:
More than -70
import java.util.Scanner;
public class Relational {
public static void main(String[] args){
Scanner scnr = new Scanner(System. in);
int userInput;
userInput =scnr* nextInt () ;
If Your code goes here */){
}
System.out.print ln ("More than -70");
else {
}
System.out.println("Fewer than on equal to -70");
}
}
 The second branch outputs "Fewer than or equal to -70" when

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!