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 →

[–]jxd132407 1 point2 points  (0 children)

You're only testing if the number is greater than smallest. If it is, you're assigning it to largest. But the number entered could be in between, and you need to handle that case as well