Ask Question
26 November, 22:18

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. Instructor Notes: An expression can be a logical condition. E. g.: Logical Condition: A statement that uses any logical operator. age

+3
Answers (1)
  1. 26 November, 22:44
    0
    x>0 & y<0

    Explanation:

    & is for AND operator. It is used when both conditions are true.

    Here conditions are,

    x>0 that is x is positive

    y<0 that is y is negative

    So if x is positive and y is negative then the following expression will evaluate to true

    x>0 & y<0
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given that the variables x and y have already been declared and assigned values, write an expression that evaluates to true if x is ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers