第20048题 单选题
C++实现从大到小输出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 }}%
答案解析