RosettaCodeData/Task/Logical-operations/Asymptote/logical-operations.asymptote
2023-07-01 13:44:08 -04:00

9 lines
227 B
Text

bool a = true;
bool b = false;
write(a & b);
write(a && b); //(with conditional evaluation of right-hand argument)
write(a | b);
write(a || b); //(with conditional evaluation of right-hand argument)
write(a ^ b);
write(!a);