To work with Boolean operators
Step 1
Description:
Boolean operators are the special operators are use to combine Boolean expressions;
Declaration:
Operator Operation
not negation
and logical and
or logical or
xor logical xor
Example:
if (player1 > player2) or (player1 >= player2) then
Writeln(' The winner is player 1');
if (player1 <>
Writeln(' The winner is player 2');
No comments:
Post a Comment