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