第20538题 单选题
以下用于输出指定整数所有因数的C++代码中,横线处应填入的语句是?

例如:输入12,输出1 2 3 4 6 12;输入18,输出1 2 3 6 9 18。 现有代码如下:

int n;
cin >> n;
for (int i = 1; i <= n; i++)
{
    ____________
    {
        cout << i << " ";
    }
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析