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
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.
Step by Step Solution
3.31 Rating (166 Votes )
There are 3 Steps involved in it
Solution if ... View full answer
Get step-by-step solutions from verified subject matter experts
