第37771题 单选题
阅读下面的C++代码。执行后如输入 5,其输出的字符图形是( )。
int n,i,j,k;
cin >> n;
for (i = 0; i < n; i++){
 for (j = 0; j < n-i-1; j++)
    cout << " ";
 for (k = 0; k < 2*i+1; k++)
    cout << "*";
 cout << endl;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析