Ask 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 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

+1
Answers (1)
  1. 19 August, 02:32
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers