I was looking for a program/source code that, as related to your logic operation:
Displayed a truth table
Performed the necessary logic for your operation in a function (pass two parameters, return the result).
Prompts the user for two pieces of input, and displays the corresponding output.