Computer Science, asked by monaemul05, 2 months ago

What is the use of logical operators? Explain with an example.​

Answers

Answered by nazhashim01
2

Answer:

These operators are used in the conditions where two values are compared and true or false is returned according to test result. Example: 3 > 5 returns you false and 3 < 5 returns you true, which can be used in if statement. Logical operators: Logical operators are used write a compound condition.t is most often used to test whether a certain relationship between the phrases is true or false. In computing, logical operations are necessary because they can be used to model the way that information flows through electrical circuits, such as the circuits inside a CPU. These types of operations are called Boolean operations

Explanation:

hope it helps u can i have a ;like plz

Answered by mdsaleem99488
2

Answer:

A logical operators is a symbol or word used to connect two or more expression such that the value of the compound expression produced depends only on that of the original expression and on the meaning of the operator.

Similar questions