← Back to Question List
C++ Code Walkthrough #36
Loop Step Counting
📄 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}