Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is non-negative and y is negative.

Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is non-negative and y is negative.

LANGUAGE: JAVA

CHALLENGE:

Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is non-negative and y is negative.

SOLUTION:

(x >= 0 && y<0)

Add comment