Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- bool XoR (bool x,bool y)
- {
- if (x==y) return false ;
- else return true;
- }
- int main()
- {
- bool x,y;
- cin>>x>>y;
- cout<<XoR(x,y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement