# your code goes heren=int(input())for i in range(n): for j in range(i+1): print(i+1, end=" ") print()
7
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!