Square in c++ with starts




#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
    int hight;
    int width;
    cout <<"Enter High: ";
    cin>> hight;
cout <<endl;
cout <<"Enter Width: ";
cin >> width;
for(int i=1;i<=hight;i++)
{
    if(i <= 1)
       for(int i=1; i<=width; i++)
               {
                    cout<< "*";
               }   
        else if(i<hight)
            {
                cout<< endl;
              
      for(int j=1;j<=width;j++)
      {
              if(j==1 || j==width)
                        cout<< "*";
                    else
                       cout<< " ";
                        }
                        }
              else
            {
                cout<< endl;
    for(int k=1; k<=width; k++)
       {
                    cout<<"*";
                } //end of for  variable width2
                }
        }
getch();
return 0;
    }