πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5 58

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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