第37851题 单选题
如下的 C++ 代码执行时输入 12 将输出如下数字图形。注意:最后一行之前没有空格。横线处应填入的代 码是( )。
           0
          12
         345
        6789
       01234
      567890
     1234567
    89012345
   678901234
  5678901234
 56789012345
678901234567
int line, i, j, k;

i = 0;
cout << "请输入行数:";
cin >> line;
for (j = 0; j < line; j++) {
    for (k = 0; k < ___________; k++) // L1
        cout << " ";
    for (k = 0; k < j + 1; k++) {
        cout << i;
        i += 1;
        if (i >= 10)
            i = 0;
    }
    cout << endl;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析