Question: Integers numScore 1 and numScore 2 are read from input. If numScore 1 is less than 2 0 , then output numScore 1 is less
Integers numScore and numScore are read from input.
If numScore is less than then output "numScore is less than
If numScore is less than or equal to then assign numScore with
Otherwise, output "numScore is greater than "public class NumberComparisons
public static void main String args
Scanner scnr new ScannerSystemin;
int numScore;
int numScore;
numScore scnrnextInt;
numScore scnrnextInt;
if numScore
System.out.printlnnumScore is less than ;
else if numScore
numScore;
else
System.out.printlnnumScore is greater than ;
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
