第23107题 单选题
判断大于0的正整数位数的C++代码,横线处应填入的先后代码是哪项

下面C++代码用于判断一个大于0的正整数是几位数,横线处应填入代码先后是( )。

int N, cnt;
cout << "请输入大于0的正整数:";
cin >> N;
cnt = 0;
while (_________) {
    cnt += 1;
    ______________;
}
cout << cnt;
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析