Just swap your initial values. Your maxTemp should be greater than Integer.MIN, no?
Type: Posts; User: PhHein
Just swap your initial values. Your maxTemp should be greater than Integer.MIN, no?
Now try by entering only negative tempreatures. Hint: it won't work.
Look at the initial values of maksTemp and minTemp and how you compare them.