What is the function of logical operators? Write an expression involving a logical operator to test if marks are 55 and grade is ‘B’.
Q16. What is the function of logical operators? Write an expression involving a logical operator to test if marks are 55 and grade is ‘B’.
Ans. Logical operators are a way to connect expressions.
marks==5 && grade==’B’.