- 1
False or False =>print welcome
T and T = T T and F = F F and T = F F and F = F T or T = T T or F = T F or T = T F or F = F Just simple summary. Share your opinions. Thanks
3 Answers
+ 1
First is a logical AND, and the second a logical OR (not to be confused with EXCLUSIVE OR).
I'm not sure what code you want writing for this.
0
Right, so maybe a function given two inputs, if either one is false, you want to output the text 'welcome'?
void logic_test(bool a, bool b)
{
if (!a || !b)
{
cout << "Welcome" << endl;
}
}
- 1
Hello Xan,
The point is to get the right logic.