Question: Java Code Write a program that stores the high and low values from a series of integers entered from the keyboard. Create 2 variables, highNum
Java Code
Write a program that stores the high and low values from a series of integers entered from the keyboard. Create 2 variables, highNum and lowNum, initiate high to zero and low to 100. Prompt the user to enter an integer until a negative number is entered. After each number is entered, check to see if it is higher than highNum or lower than lowNum, if so, set the value of the variable to the new value. After a negative number has been entered, print out the lowNum and highNum values on separate lines with labels.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
