*
* *
* *
* *
* *
* *
* *
* *
*
#include<iostream>
using namespace std;
int main()
{
for(int i=0;i<9;i++)
{
if(i<5){
for(int j=0;j<=(2*i+4-i);j++)
{
if(j==(4-i) || j==(2*i+4-i))
cout<<"* ";
else
cout<<" ";
}
}
else
{
for(int j=0;j<=(12-i);j++)
{
if(j==(i-4) || j==(12-i))
{
cout<<"* ";
}
else
cout<<" ";
}
}
cout<<endl;
}
return 0;
}
Comments
Post a Comment