This Python program prints a structured number pattern where each row starts with a number and grows by adding that number repeatedly.
The first row starts with 1 and prints 3 values: 1, 2, 4.
Subsequent rows follow a pattern where the row number is multiplied by increasing integers.
The final row reaches up to 10 × 10 = 100.
# Generate progressive number pattern
for i in range(1, 11):
for j in range(1, i + 1):
print(i * j, end="\t")
print()
1
2 4
3 6 9
4 8 12 16
5 10 15 20 25
...
10 20 30 ... 100
- The outer loop for i in range(1, 11) controls the row number
- The inner loop for j in range(1, i + 1) prints i × j for each column
- end="\t" ensures horizontal spacing between numbers
- print() after the inner loop moves to the next line