Why doesn’t this Java code do the same as this C++ code? (basic operations; C++ output is correct) [closed]

if(second % 2) means if(second % 2 != 0). You wrote ==.

Leave a Comment