Question: Complete the if - else statement to output Under - 3 0 if the value of userVal is under - 3 0 . Otherwise,
Complete the ifelse statement to output "Under if the value of userVal is under Otherwise, output or more".
Ex: If the input is then the output is:
Under import java.util.Scanner;
public class Relational
public static void mainString args
Scanner scnr new ScannerSystemin;
int userVal;
userVal scnrnextInt;
if Your code goes here
System.out.printlnUnder ;
else
System.out.println or more";
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
