Write code that tests the variable x to determine whether it is greater than 0. If x

Question:

Write code that tests the variable x to determine whether it is greater than 0. If x is greater than 0, the code should test the variable y to determine whether it is less than 20. If y is less than 20, the code should assign 1 to the variable z. If y is not less than 20, the code should assign 0 to the variable z.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: