Search:

Type: Posts; User: PhHein

Search: Search took 0.30 seconds.

  1. Replies
    13
    Views
    1,687

    Re: min and max value of int

    Just swap your initial values. Your maxTemp should be greater than Integer.MIN, no?
  2. Replies
    13
    Views
    1,687

    Re: min and max value of int

    Now try by entering only negative tempreatures. Hint: it won't work.
  3. Replies
    13
    Views
    1,687

    Re: min and max value of int

    Look at the initial values of maksTemp and minTemp and how you compare them.
Results 1 to 3 of 3