πŸ“Š Python
Q. What is the output of the following program :
Code:
i = 0
while i < 3:
print i
print i+1
  • (A) 0 2 1 3 2 4
  • (B) 0 1 2 3 4 5
  • (C) 0 1 1 2 2 3
  • (D) 1 0 2 4 3 5
πŸ’¬ Discuss
βœ… Correct Answer: (C) 0 1 1 2 2 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
188
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Shivam
Publisher
πŸ“ˆ
98%
Success Rate