C++20 sections · 1024 units
Open in CourseQuiz: do-while
Test understanding
Check Your Understanding
What does int x = 10; do { cout << x; } while (x < 5); print?
- A.10
- B.Compilation error
- C.10 9 8 7 6 5
- D.Nothing, the condition is false
Test understanding
What does int x = 10; do { cout << x; } while (x < 5); print?