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

6 lines
140 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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