PHP中文网2017-04-17 14:41:35
void main(void)
{
int i,n,j;
for(i=1;i<6,i++)
{
for(j = 1;j<i;j++){
cout<<" ";
}
for(j =0;j<11-2*i;j++){
cout<<"*";
}
for(j = 1;j<i;j++){
cout<<" ";
}
cout<<endl;
}
}
试试