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’.

Leave a Reply

Your email address will not be published. Required fields are marked *

898 Views
%d bloggers like this: