A [[wp:Truth table|truth table]] is a display of the inputs to, and the output of a Boolean equationfunction organisedorganized as a table where each row gives one combination of input values and the corresponding value of the equationfunction.
;Task:
# Input a Boolean equationfunction from the user as a string then calculate and print a formatted truth table for the given equationfunction.<br> (One can assume that the user input is correct).
# Print and show output for Boolean equationsfunctions of two and three input variables, but any program should not be limited to that many variables in the equationfunction.
# Either reverse-polish or infix notation expressions are allowed.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.