C++20 sections · 1024 units
Open in Course

Quiz: while Patterns

Test understanding

Check Your Understanding

What will int i = 5; while (i > 0) { cout << i; i--; } print?

  1. A.5 4 3 2 1
  2. B.5 4 3 2 1 0
  3. C.4 3 2 1 0
  4. D.Infinite loop
Start the roadmap to answer the quizzes and solve the challenges