29.6k views
5 votes
1. Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z

2. Write an if statement that assigns 10 to the variable b, and 50 to the variable c if the
3. Write an if-else statement that assigns 0 to the variable b if the variable a is less
than 10. Otherwise, it should assign 99 to the variable b.
Has and how does it work?
Algorithm Workbench
of the variable x is greater than 100.
variable a is equal to 100.​

User Jotavejv
by
5.2k points

1 Answer

2 votes

Answer:

if x > 100:

y = 20

z = 40

Step-by-step explanation:

User Aleksandr Sakharov
by
5.1k points