In the below pattern each column contains N number of stars where N is the number of rows. The number of rows and columns are the same so we can assume it as a square matrix.
Enter the number of rows: 5
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *