RosettaCodeData/Task/Logical-operations/F-Sharp/logical-operations.fs

7 lines
245 B
Forth
Raw Permalink Normal View History

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