第19554题 单选题
为使给定C++程序输出"1248",需在for循环的横线处填入哪项代码?

请为下列C++代码的for循环第三个参数位置选择合适代码,使程序输出结果为"1248":

#include <iostream>
using namespace std;
int main() {
    for (int i = 1; i <= 8; __________) // 在此处填入代码
        cout << i;
    return 0;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析