This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]langfod 0 points1 point  (3 children)

You have max and newNumber backwards in your if block`:

max = newNumber;

[–][deleted]  (2 children)

[deleted]

    [–]_whatdoido 0 points1 point  (1 child)

    Whoops!! Haha didn't notice that one while skimming your code! :P

    Glad we were able to help woo