Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int function(int a, int b, int c){
- return !(a == b || c) == a;
- }
- int main()
- {
- cout << "!(a == b || c) == a" << endl;
- for (int a = 0; a <= 1; a++)
- for (int b = 0; b <= 1; b++)
- for (int c = 0; c <= 1; c++){
- cout << "(A = " << a << ", " << "B = " << b << ", " << "C = " << c << ") = " << function(a,b,c) << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment