Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. bool x,y,z;
  4. bool Election(bool x, bool y, bool z){
  5. if (x==y or x==z) return x;
  6. if (y==z) return y;
  7.  
  8. }
  9.  
  10. int main(){
  11. cin>>x>>y>>z;
  12. cout<<Election(x,y,z);
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement