fork download
  1. n = int(input())
  2. wypisywana = 1
  3. for i in range(n):
  4. for j in range(i+1):
  5. print(wypisywana, end = " ")
  6. wypisywana=wypisywana+1
  7. print()
Success #stdin #stdout 0.1s 14212KB
stdin
5
stdout
1 
2 3 
4 5 6 
7 8 9 10 
11 12 13 14 15