#include <iostream>
using namespace std; // nur hadirah munawarah dan nur aleeya syakila
int main()
{ 

    int x, y, z =0; // x is row while y is space. z is coloumn. 
    for (x=1; x<=5; x++) 
    { 
         
        for (y=x; y<5; y++)
		{ 
            cout << " "; 
        } 
        
        while (z!=(2*x-1)) 
		{ 
            if (z==0 || z==2*x-2) 
                cout << "*"; 
            else
                cout << " "; 
            z++; 
        
        } 
        z=0; 
        cout<<endl;
	}
	cout<<"**********"; 
 
    return 0; 
} 
