HusnaSari / Algorithms

MIT License
1 stars 1 forks source link

Half Number Pyramiths #7

Closed emrerenJs closed 2 years ago

emrerenJs commented 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

HusnaSari commented 2 years ago

Eta: 1 hour

HusnaSari commented 2 years ago

Ata: 1hour