A29790.圣诞树
2026-02-09 12:43:09
发布于:河北
0阅读
0回复
0点赞
解题思路
考察 endl 的相关知识点,可以分为 7 行依次输出
代码
#include <bits/stdc++.h>
using namespace std;
int main(){
cout << " * " << endl;
cout << " *** " << endl;
cout << " ***** " << endl;
cout << "*******" << endl;
cout << " * " << endl;
cout << " * " << endl;
cout << " * " << endl;
return 0;
}
这里空空如也








有帮助,赞一个