#include <iostream.h>
#include <conio.h>
int main()
{
int n, i, j;
cout << "Please enter length of side : ";
cin >> n;
for (i = 0; i < n; i++)
cout << "*";
cout << endl;
for (i = n - 2; i >= 0; i--)
{
cout << "*";
for (j = 0; j < i; j++)
cout << " ";
cout << "*" << endl;
}
getch();
return 0;
}