Logical Operators

Logical Operators

What are Logical Operators ?

What are Logical operators used for ?

What are the symbols of Logical Operators ?

What are Logical Operators ?

A logical operator is a symbol or word used to connect two or more expressions, Common logical operators include AND, OR, and NOT. Logical operators operate on boolean expressions to combine the results of these boolean expression into a single boolean value.

What are Logical operators used for ?

Logical Operators are used to perform logical operations and include AND, OR, or NOT. Boolean Operators include AND, OR, XOR, or NOT and can have one of two values, true or false.

What are the symbols of Logical Operators ?

&& logical AND x && y

|| logical OR x || y

! logical NOT ! x

![image.png](cdn.hashnode.com/res/hashnode/image/upload/..

Watch this video to understand more on Logical Operators

Modulo Operator

the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another.

Examples :

align="left") youtube.com/watch?v=PkRnbBXcdTw