Here there is such a python code:
if not(j == 0 or j == 1 and i == 0)
What will it look like in C ++ or java?
Correct if wrong:
if ( !(j==0 || j==1) || (i==0) )
Here there is such a python code:
if not(j == 0 or j == 1 and i == 0)
What will it look like in C ++ or java?
Correct if wrong:
if ( !(j==0 || j==1) || (i==0) )
if(!(j==0||j==1&&i==0)) if(j!=0&&(j!=1||i!=0))//тоже самое
if ( ! ((j == 0 || j == 1) && i == 0) )
Source: https://ru.stackoverflow.com/questions/169680/