Question: Integers numScore 1 and numScore 2 are read from input. Write one if statement and one if - else statement: If numScore 1 is less
Integers numScore and numScore are read from input. Write one if statement and one ifelse statement:
If numScore is less than or equal to then output "numScore is less than or equal to
If numScore is greater than or equal to then assign numScore with
Otherwise, output "numScore is less than
End each output with a newline.
import java.util.Scanner;
public class NumberConditions
public static void mainString args
Scanner scnr new ScannerSystemin;
int numScore;
int numScore;
numScore scnrnextInt;
numScore scnrnextInt;
Your code goes here
System.out.printlnnumScore is numScore;
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
