'''
Question 8: Print the following pattern
1 
2 2 
3 3 3 
4 4 4 4 
5 5 5 5 5
'''

for num in range(6):
 for i in range(num):
  print( num, end=" ") #this line prints number
  # and print new line
 print('\n')