Computer Science, asked by rohan375213, 5 hours ago

Express the following if statement using logical NOT operator.

if(x%2==0)

System.out.println(“Even No.”);​

Answers

Answered by BrainlyProgrammer
7

Answer:

if(x%2!=0)

System.out.println("Not Even number");

About Logical NOT Operator

  • It has the highest precedence in logical operator

Some more Logical operators:-

  • Logical AND operator
  • Logical OR operator

Similar questions