第34951题 单选题
下面 C++ 代码用于求正整数的所有因数,即输出所有能整除一个正整数的数。如,输入 10,则输出为 1、2、5、10;输入 12,则输出为 1、2、3、4、6、12;输入 17,则输出为 1、17。在横线处应填入代码是 ( )。
for(______)
    if(n%i==0)
        cout <<i<<endl;
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析