Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    15
    Views
    8,709

    Re: Find the two largest number

    Looks like a very inefficient way to do it with three loops.
  2. Replies
    15
    Views
    8,709

    Re: Find the two largest number

    An else would be a tad more efficient in that if the first if is true, the second one can not be true.
  3. Replies
    15
    Views
    8,709

    Re: Find the two largest number

    that looks like it should be an else

    What if two largest?
  4. Replies
    15
    Views
    8,709

    Re: Find the two largest number

    That makes it very hard to write a program if you do not know what steps the program is to take to solve the problem.

    I often use a piece of paper and pencil to work out program logic BEFORE I try...
  5. Replies
    15
    Views
    8,709

    Re: Find the two largest number

    Why test against both?
  6. Replies
    15
    Views
    8,709

    Re: Find the two largest number

    Can you explain your logic?
    Especially how you determine the second largest.
Results 1 to 6 of 6