1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Expected output: // step 1 // step 2 // step 3 #include <iostream> int main() { for (int step = 1; step <= 3; ++step) { std::cout << "step " << step << std::endl; } return 0; }