https://hack.codingblocks.com/app/contests/987/p/172

#include
using namespace std;
int main()
{
int n;
cin>>n;
for(int row=1;row<=n;row++)
{
for(int space=1;space<=n-row;row++)
{
cout<<" "<<endl;
}
for(int d=1;d<=2row-1;d++)
{
cout<<d<<endl;
}
if(row=!1)
{
int j;
if(j==2
row-1)
{
int x=2*row-2;
while(x>=row)
{
cout<<x;
x–;
}
}

}cout<<endl;
return 0;