You are viewing a single comment's thread. Return to all comments →
Why not just use max = -63? If the whole array is -9 then max will never change and output correct answer of -63
max = -63
-9
-63
Seems like cookies are disabled on this browser, please enable them to open this website
Closest Number
You are viewing a single comment's thread. Return to all comments →
Why not just use
max = -63
? If the whole array is-9
then max will never change and output correct answer of-63