Advertisement
SergeyPGUTI

6.1.3

Oct 24th, 2015
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  bool XoR (bool x,bool y)
  6. {
  7.     if (x==y) return false ;
  8.         else return true;
  9. }
  10. int main()
  11. {
  12.     bool x,y;
  13.     cin>>x>>y;
  14.     cout<<XoR(x,y);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement