Closed emrerenJs closed 2 years ago
Write a program that gives a half pyramid of increasing numbers.
Example 1 :
N : 4 Output : 1 (row 1) 2 3 (row : 2) 4 5 6 (row : 3) 7 8 9 10 (row : 4)
Example 2 :
N : 6 Output : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Difficulty: 10/5
Eta: 1 hour
Ata: 1hour
Write a program that gives a half pyramid of increasing numbers.
Example 1 :
Example 2 :
Difficulty: 10/5