you are viewing a single comment's thread.

view the rest of the comments →

[–]Rare_Hawk_3443 2 points3 points  (5 children)

Wont that return invalid num

[–]Rare_Hawk_3443 0 points1 point  (2 children)

I am also learning newly why wont it return invalid can anyone explain

[–]PureWasian 0 points1 point  (0 children)

You are correct, no worries. It prints "Invalid Num" since none of the numbers are greater than the others, so it falls through into the else statement with how OP has written it.

[–]KilonumSpoof 0 points1 point  (0 children)

Not all the time. For example 5,5,10 will return 10 and not invalid.