
3-13
Operators and Expressions
Explanation:
In the above given program, three integers are entered through the keyboard (x, y and z).
Using conditional statements, values of a, b and c are obtained. e sum of x, y and z is
stored in ‘m’ and the sum of a, b and c is stored in ‘n’. e variables ‘m’ and ‘n’ are compared
and appropriate messages are displayed.
3.8 LOGICAL OPERATORS
e logical relationship between the two expressions is tested with logical operators. Using these
operators, two expressions can be joined. Aer checking the conditions, it provides logical true (1)
or false (0) status. e operands could be constants, variables a ...