第19479题 单选题
给定求正整数所有因数的C++代码框架,横线处应填入的循环语句是?

代码框架如下:

int n = 0;
cout << "请输入一个正整数:";
cin >> n;
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 }}%
答案解析