CJCoding With Joseph
15per day
← Back to Question List

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics:
C++ Quiz #14

While Loop Condition

easyLoops

What is the output of this code?

📄 Code

1#include <iostream>
2using namespace std;
3 
4int main() {
5 int i = 1;
6 while (i <= 3) {
7 cout << i << " ";
8 i++;
9 }
10 cout << endl;
11 return 0;
12}