Advertisement
thesonpb

đa số

Mar 30th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.13 KB | None | 0 0
  1. bool majority(bool a, bool b, bool c){
  2.     return ((a==b&&b==true) || (a==c && c==true) || (b==c && c==true)) ?  true :  false;
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement