C++20 sections · 1024 units
Open in CourseQuiz: while Patterns
Test understanding
Check Your Understanding
What will int i = 5; while (i > 0) { cout << i; i--; } print?
- A.5 4 3 2 1
- B.5 4 3 2 1 0
- C.4 3 2 1 0
- D.Infinite loop
Test understanding
What will int i = 5; while (i > 0) { cout << i; i--; } print?