Python program to print the pattern for the given N number of rows:
Input format :
Output format :
Sample Input:
Sample Output for N = 7:
N = int(input())
i = 0
while i < N:
j = 0
while j < N:
print(str(N), end = (''))
j = j + 1
print()
i = i + 1
Tags:
Solutions