RosettaCodeData/Task/Logical-operations/QuickBASIC/logical-operations.basic

6 lines
140 B
Plaintext

SUB logic (a%, b%) 'no booleans in BASIC...these are integers. 1 for true 0 for false.
PRINT a AND b
PRINT a OR b
PRINT NOT a
END SUB