第22376题 单选题
以下C++代码实现从大到小输出N的所有因子,横线处应填入的内容是?

实现从大到小的顺序输出 N 的所有因子。例如,输入 N = 18 时输出 18 9 6 3 2 1,代码如下:

int N = 0;
cin >> N;
for (________________________) // 此处填写代码
    if (!(N % i))
        cout << i << ' ';
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析