Answers for "check if atleast two out of three booleans are true"

0

check if atleast two out of three booleans are true

boolean atLeastTwo(boolean a, boolean b, boolean c) {
    return a && (b || c) || (b && c);
}
Posted by: Guest on April-19-2022

Code answers related to "check if atleast two out of three booleans are true"

Browse Popular Code Answers by Language