Print this pattern consider input as 4
1
1 3 1
1 3 5 3 1
1 3 5 7 5 3 1
n = int(input()) for i in range(i): for j in range(i): print(2*i+1, end=" ") print()
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment