I\'m trying to get the highest and lowest numbers entered by the user. The code below seems to be mostly working but I can\'t seem to get the right number for the lowest val
What is the purpose of A? You're not modifying lowest either. You're close, try this:
A
lowest
num = ... if ( num > max ) max = num; if ( num < min ) min = num; System.out.println("Highest: " + max); System.out.println("Lowest: " + min);