3177 - 打印树(图形)
如题
Input
Output
Examples
Input
no input needed
Output
*
***
*****
*******
*********
***
***
***
***
Solution C++
#include<bits/stdc++.h> using namespace std; int n; int main() { cout<<" *"<<endl; cout<<" ***"<<endl; cout<<" *****"<<endl; cout<<" *******"<<endl; cout<<" *********"<<endl; cout<<" ***"<<endl; cout<<" ***"<<endl; cout<<" ***"<<endl; cout<<" ***"<<endl; return 0; }