#include <iostream>
using namespace std;
int main()
{
for(int i=5,y=1; i>=1||y<=5; i--, y++)
{
for(int j=i; j>=1; j--)
{
cout<< " ";
}
for(int k=1; k<=y; k++)
{
cout<< "*";
}
for(int l=1; l<=y; l++)
{
cout<< "*";
}
cout<<"\n";
}
for(int er=5,y=1; er>=1||y<=5; er--, y++)
{
for(int j=1; j<=y; j++)
{
cout<< " ";
}
for(int k=1;k<=er; k++)
{
cout<<"*";
}
for(int a=1; a<=er; a++)
{
cout<<"*";
}
cout<<"\n";
}
}
0 Yorumlar