def logical( a, b ) = println( """ a and b = ${a and b} a or b = ${a or b} not a = ${not a} a xor b = ${a xor b} """ ) for i <- [false, true], j <- [false, true] do logical( i, j )