Guest User

Untitled

a guest
Dec 1st, 2020
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int function(int a, int b, int c){
  5. return !(a == b || c) == a;
  6. }
  7.  
  8. int main()
  9. {
  10. cout << "!(a == b || c) == a" << endl;
  11. for (int a = 0; a <= 1; a++)
  12. for (int b = 0; b <= 1; b++)
  13. for (int c = 0; c <= 1; c++){
  14. cout << "(A = " << a << ", " << "B = " << b << ", " << "C = " << c << ") = " << function(a,b,c) << endl;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment