fork(1) download
  1. rows = 8
  2. # rows = int(input("Enter the number of rows "))
  3. for i in range(1, rows + 1):
  4. for j in range(1, i + 1):
  5. # multiplication current column and row
  6. square = i * j
  7. print(i * j, end=' ')
  8. print()
Success #stdin #stdout 0.04s 9672KB
stdin
Standard input is empty
stdout
1  
2  4  
3  6  9  
4  8  12  16  
5  10  15  20  25  
6  12  18  24  30  36  
7  14  21  28  35  42  49  
8  16  24  32  40  48  56  64