214k views
2 votes
What is the output of the following program?

numA = 2
numB = 3
while numA > 0:
numA = numA-1
while numB > 0:
numB = numB-1
print (numA, numB)

What is the output of the following program? numA = 2 numB = 3 while numA > 0: numA-example-1

2 Answers

0 votes

Answer:1 2

1 1

1 0

Step-by-step explanation:

User Riccardo Petraglia
by
4.8k points
3 votes

Answer:

1 2

1 1

1 0

Explanation: you must choose the option with the space between 1 and 2 (1 2, 1 1, 1 0) not (12, 11, 10)

User Kannan Mohan
by
4.8k points