delete pics to save space
This commit is contained in:
18
history_source/ccf 入门篇/U4/4.4.2.cpp
Normal file
18
history_source/ccf 入门篇/U4/4.4.2.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
while(true)
|
||||
{
|
||||
cin>>n;
|
||||
for(int i=0;i<n;i++)
|
||||
{
|
||||
for(int a=0;a<(n*2-1-i*2-1)/2;a++) cout<<" ";
|
||||
for(int a=0;a<i*2+1;a++) cout<<"*";
|
||||
for(int a=0;a<(n*2-1-i*2-1)/2;a++) cout<<" ";
|
||||
cout<<endl;
|
||||
}
|
||||
cout<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user