第23089题 单选题
补全实现指定数字金字塔图形的C++代码,横线处应填入的代码是?

以下C++代码用于输出指定的数字金字塔图形,请选择横线处应填入的正确代码: 数字金字塔示例

cout << "请输入层数:";
cin >> N;
K = 1;
for (i = 1; i < N + 1; i++) {
    for (int _ = 1; _ < ___________; _++)
        cout << " ";
    for (int _ = 1; _ < ________; _++) {
        cout << K;
        K += 1;
        if (K == 10)
            K = 1;
    }
    cout << '\n';
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析