43.5k views
4 votes
What is output? Select all that apply.

C=0.
while (c < 5):
c = c + 1
print(c)

User Wudong
by
5.3k points

1 Answer

5 votes

Answer:

Since we didn't print it at the beginning, we can assume that the program will start printing to the console at the number: 1. After that, it continues right before hitting 5. Proving the output of the program will be the following:

1

2

3

4

User Dan Forbes
by
4.4k points