M

Manisha Agrawal • 9.34K Points
Tutor III

Q. Write the output of the following:

Code:
k = 5
sk = 0;
while k <= 12:
    sk = sk + k
    k = k + 4
print(sk, k)
  • (A) 14 14
  • (B) 13 14
  • (C) 14 13
  • (D) 13 13
  • Correct Answer - Option(C)
  • Views: 104
  • Filed under category Python

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.

Be the first to start discuss.


Question analytics