Write a program that reads several boolean operations and prints their result.
Input will consist of several lines each containing
a boolean operation.
This operation may be unary, in this case
the input line will contain the word
not followed by a boolean p.
This operation may be binary, in this case
the input line will contain a boolean p, an operator x and a boolean q.
Input tokens are separated by a single space.
Booleans p and q are either of the strings
and the operator x is either of the strings
Output should contain a line with the result of the given input operation.
true and false false or true not true true xor true true implies true
false true false false true
try next: set-member
Copyright © 2020-2023 Rudy Matela
All rights reserved