Current location - Training Enrollment Network - Mathematics courses - What are the operation symbols of and, or, XOR and NOR in pascal?
What are the operation symbols of and, or, XOR and NOR in pascal?
And it's ∧, or ∨, isn't it? Xor is not (these strange symbols are all used in mathematics).

In PASCAL (1 equals true, 0 equals false):

True and true=true mean 1 and 1= 1. In the use of AND, if both sides are true, the result is true, otherwise it is false.

In the use of or, if at least one of the two parties is true, the result is true, otherwise it is false.

In the use of XOR, if the two sides are the same, it is false, and if the two sides are different, it is true.

For example: 1xor 1 = 0, 0xor0 = 0, 1xor0 = 1, 0x0r1=1.

In the use of not, it is the opposite.

For example: not 1=0, not 0= 1.