RosettaCodeData/Task/Logical-operations/PL-I/logical-operations.pli

9 lines
237 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
logical_ops: procedure (t, u);
declare (t, u) bit (1);
put skip list (t & u);
put skip list (t | u); /* logical or */
put skip list (^t); /* logical not */
put skip list (t ^ u); /* exclusive or */
end logical_ops;