RosettaCodeData/Task/Logical-operations/R/logical-operations.r

10 lines
131 B
R
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
logic <- function(a, b) {
print(a && b)
print(a || b)
print(! a)
}
logic(TRUE, TRUE)
logic(TRUE, FALSE)
logic(FALSE, FALSE)