This Blog aims to provide notes on Computer Science Subjects
1 2 3 4 5
n=int(input("Enter the number of rows: ")) for j in range(1,n+1): for i in range(1,n+1): print(j,end=" ") print()
No comments:
Post a Comment