163k views
3 votes
What is output? Select all that apply.

c = 6

while (c > 0):
print (c)
c = c - 2

User Millhouse
by
5.5k points

1 Answer

4 votes

Answer:

6

4

2

Step-by-step explanation:

First loop:

C = 6

6

C - 2 = 4

Second loop:

C = 4

4

C - 2 = 2

C = 2

2

C - 2 = 0

Is C higher than 0 now? No

User Alexandra Rusina
by
4.7k points