#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();

 int side,row,col,ro;

	  cout<<"Enter the side : ";
	  cin>>side;
	  cout<<endl<<endl;
	  ro=side/2;
 for(row=1;row<=side;row++)
	 {
	 for(col=1;col<=side;col++)

		 {
		 if(col>=row){
		 if(row==ro)
		 row++;
		 cout<<"*";}
		 else
		 cout<<" ";

		 }

	 cout<<endl;
	 }

getch();
}