150k views
1 vote
What is output by the following code? Select all that apply.

c = 2




while (c < 12):

print (c)
c = c + 3
Group of answer choices

3

4

6

7

9

2

10

5

12

8

1

11

User Thoomas
by
7.0k points

1 Answer

4 votes

Answer:

output:

2

5

8

11

Step-by-step explanation:

first round: 2

second round: 2+3 = 5

third round: 5+3 = 8

fourth round: 8+3 = 11

fifth round: 11+3 > 12 then stop

User Shagun
by
7.3k points