I am trying to express a condition of a problem: "among three non-zero integers, if any one integer is greater than or equal to the sum of the the other two integers" as if condition:
which is giving the wrong output and the correct condition expression is:Code:if ( (a || b ||c) >= (a+b || b+c || c+a) )
Can anybody please explain the problem with the first condition.Code:if (a >= b+c || b>=c+a || c>=a+b )