Search:

Type: Posts; User: GregBrannon

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    1,321

    Re: Second largest

    You're right, I over simplified, but why did you change the problem?

    Here's my for loop using an array that contains the same numbers you used in the same order for the 2 largest numbers, not 3:
    ...
  2. Replies
    6
    Views
    1,321

    Re: Second largest

    It's interesting that you changed the beginning values to MAX from MIN. If you want to find a large number from a collection, you start by comparing it to a smaller number, not a number that it...
  3. Replies
    6
    Views
    1,321

    Re: Second largest

    Remind me, what is StdIn? I think I remember it from a book I read a long time ago, but I've forgotten.

    It looks like you meant to use the command line input that is saved in the args[] array...
Results 1 to 3 of 3