Challenge for Logical Operators (and Booleans)
Challenge
You will be given two integer inputs, a
and b
. Simulate a NAND gate by returning a boolean false only if both inputs are equal to 1, and returning true in all other cases.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.