Q. What will be the output of the following code snippet?

Code:
count = 0
while(True):
   if count % 3 == 0:
       print(count, end = " ")
   if(count > 15):
       break;
   count += 1
  • (A) 0 1 2 ….. 15
  • (B) Infinite Loop
  • (C) 0 3 6 9 12 15
  • (D) 0 3 6 9 12
πŸ’¬ Discuss
βœ… Correct Answer: (C) 0 3 6 9 12 15

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
679
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akash Lawaniya
Publisher
πŸ“ˆ
93%
Success Rate