Last Updated: 5 Dec, 2018

Square Pattern

Easy
Asked in company
SAP Labs

Problem statement

Print the following pattern for the given N number of rows.

Pattern for N = 4
4444
4444
4444
4444
Input format :
Integer N (Total no. of rows)
Output format :
Pattern in N lines
Constraints
0 <= N <= 50