Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.12 seconds.

  1. Re: Determine the two smallest integers from a set of user input integers

    It is this statement:

    else if (min1 == min2) {
    min2 = num2;
    }

    Since we are setting the default values outside of the loop, we only need 2 cases. The first is if...
  2. Re: Determine the two smallest integers from a set of user input integers

    I have some tips.

    I'm not sure why everyone is taught this when they first start, but you usually don't want to go to less than or equal to in your for loops and you don't want to start from...
Results 1 to 2 of 2