
Operators and Expressions 71
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. The sum of x, y and z is
stored in ‘m’ and the sum of a, b and c is stored in ‘n’. The variables ‘m’ and ‘n’ are com-
pared and appropriate messages are displayed.
3.8 logIcAl oPErAtorS
The logical relationship between the two expressions is tested with logical operators. Using these
operators, two expressions can be joined. After checking the conditions, it provides logical true (1) or
false (0) status. The operands could be constants, v