... | ... | @@ -188,6 +188,7 @@ Program vypíše strom postupností. |
|
|
|
|
|
```
|
|
|
Input: 5
|
|
|
Output:
|
|
|
1
|
|
|
1 1
|
|
|
1 2 1
|
... | ... | @@ -203,6 +204,7 @@ Spravte [Pascalov trojuholník](https://en.wikipedia.org/wiki/Pascal%27s_triangl |
|
|
|
|
|
```
|
|
|
Input: 5
|
|
|
Output:
|
|
|
1
|
|
|
1 1
|
|
|
1 2 1
|
... | ... | @@ -216,7 +218,31 @@ Spravte si pomocnú funkciu na faktoriál. |
|
|
|
|
|
#### BONUS 2
|
|
|
|
|
|
Trojuholník nepárnych čísel.
|
|
|
|
|
|
```
|
|
|
Input: 5
|
|
|
Output:
|
|
|
1 3 5 7 9
|
|
|
1 3 5 7
|
|
|
1 3 5
|
|
|
1 3
|
|
|
1
|
|
|
```
|
|
|
|
|
|
#### BONUS 3
|
|
|
|
|
|
Obrátená pyramída čísel.
|
|
|
|
|
|
```
|
|
|
Input: 5
|
|
|
Output:
|
|
|
5 6 7 8 9 8 7 6 5
|
|
|
4 5 6 7 6 5 4
|
|
|
3 4 5 4 3
|
|
|
2 3 2
|
|
|
1
|
|
|
```
|
|
|
|
|
|
### HW
|
|
|
|
... | ... | |