冯贵智 • 1个月前
怕老师看答案在下面
再下面
就差一点,没父母的
mfmmfm
# include<iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
for (int j = 0; j < n - i; j++) {
cout << " ";
}
for (int j = 0; j < i * 2 - 1; j++) {
cout << "*";
}
cout << endl;
}
return 0;
}
l老傻子,错的;
H哈哈哈哈哈hhhhhhhhhhhhhhhhhhh
评论: