[Solved] Parentheses Reduction


As correctly stated in Turing85’s comment, you can actually remove every parenthesis except the outer ones

if  (weight < 160 && age <= 27 && age >= 22 
        && height < 72 &&   !isASmoker  &&  isMale   
        &&   isGoodLooking  &&  isAbleToRelocate  )

this is the minimum number of parethesis you can use. The maximum number is… well, virtually infinite (finite number, obviously, but infinite possibilities). You can add as many as you like, as long as it is sintactically correct.

solved Parentheses Reduction