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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 14 13

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
200
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
95%
Success Rate