You are viewing a single comment's thread. Return to all comments →
if(((N/2) != 0) || (N>100))
if N = 50 then N/2 !=0 is true, and it is always true for N>=2;
to get remainder use % (N%2)
Seems like cookies are disabled on this browser, please enable them to open this website
Java If-Else
You are viewing a single comment's thread. Return to all comments →
if(((N/2) != 0) || (N>100))
if N = 50 then N/2 !=0 is true, and it is always true for N>=2;
to get remainder use % (N%2)