// MUHAMMAD RAFLY
// A19CS5073

#include <iostream>
using namespace std;
void print_rectangle(int n, int m)
{
	int i,j ;
	cout << "Enter the number of rows: ";
	cin >> rows;
	
	for( int i = 1; i <= n; ++i )
	{
		for ( int i = j; j <= m; ++j)
		{
			if (i == 1 || i == n ||
				j == 1 || j == m) 
			cout << "* ";
			
			else
				cout << " ";	
		}
		cout << endl;
	}

}

int main ()
{
	int rows = 11 , columns = 7;
	print_rectangle (rows,columns);
	return 0;
}
