#!/usr/bin/ruby

#
## https://rosettacode.org/wiki/Logical_operations
#

func logic(a, b) {
    say ("a and b: ", a && b);
    say ("a  or b: ", a || b);
    say ("a xor b: ", a ^ b);
    say ("  not a: ", !a);
}
 
logic(false, true);
