Question: C++ Print the truth table for any 2 variable propositional function. Ask 3 questions: Question 1- Do you want to use And or Or? Question
C++
Print the truth table for any 2 variable propositional function. Ask 3 questions: Question 1- Do you want to use And or Or? Question 2- Do you want to NOT p? Question 3- Do you want to NOT q? Use: V (or), A (and), ~ (not) 3 column truth table: p, q, answer. Other intermediate columns are optional. Output (after the questions) should be 5 lines long: Column headers, 4 lines for the table.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
