RosettaCodeData/Task/Logical-operations/F-Sharp/logical-operations.fs
2023-07-01 13:44:08 -04:00

6 lines
245 B
FSharp

let printLogic a b =
printfn "a and b is %b" (a && b)
printfn "a or b is %b" (a || b)
printfn "Not a is %b" (not a)
// The not-equals operator has the same effect as XOR on booleans.
printfn "a exclusive-or b is %b" (a <> b)