- Write a program to display truth tables
Write a program that displays the "truth table" for both the &&
and the ||
operators. A truth table is a list of all the possible results of operating on
two boolean values.
Your output for the &&
operator should look similar to this:
Truth table for && operator
true && true = true
true && false = false
false && false = false
false && true = false