- 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

2nd Apr 2018, 1:11 AM
Medo Hamdani
Medo Hamdani - avatar
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.
2nd Apr 2018, 2:02 AM
Emma
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; } }
2nd Apr 2018, 3:49 AM
Emma
- 1
Hello Xan, The point is to get the right logic.
2nd Apr 2018, 3:03 AM
Medo Hamdani
Medo Hamdani - avatar