CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Loop Step Counting

C++ code walkthrough · Question 36
easyLoops

Code

Read carefully. What does this print?
1#include <iostream>
2using namespace std;
3int main() {
4 int count = 0;
5 for (int i = 0; i < 20; i += 3) {
6 count++;
7 }
8 cout << count << endl;
9 return 0;
10}

Your answer