Write an if-else statement that assigns 20 to the variable y if the variable x is greater

Question:

Write an if-else statement that assigns 20 to the variable y if the variable x is greater than 100. Otherwise, it should assign 0 to the variable y.

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

Step by Step Answer:

Question Posted: