#include<iostream>
using namespace std;
int main()
{
int i,j;
i=1;
while(i<=6)
{
j=1;
while(j<=i-1)
{
cout<<' ';
j=j+1;
}
j=11;
while(j>=2*i-1)
{
cout<<'*';
j=j-1;
}
cout<<endl;
i=i+1;
}
return 0;
}
![](http://hi.csdn.net/attachment/201202/24/0_1330100064IYW2.gif)