📝 假设输入 N=4 ,下列代码的输出图形是( )。 cpp for(int i=1; i<=N; i++){ for(int j=1; j<=i; j++) cout << "*"; cout << endl; }
📂 C++
· ⚡ 难度 1
· ❓ 单选题
· 📖 二级模拟
假设输入 N=4,下列代码的输出图形是( )。
cpp
for(int i=1; i<=N; i++){
for(int j=1; j<=i; j++) cout << "*";
cout << endl;
}