Home / Programming MCQs / Python MCQs / Question

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. Write the output of the following code

Code:
j=12
c=9
while(j):
     if(j>5):
          c=c+j-2
          j=j-1
     else:
          break
print(j, c)
(A) 6 58
(B) 5 58
(C) Error
(D) 5 60

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.