omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / exercises / pascals-triangle / pascals-triangle.om
| 1 | note Exercism-style exercise "pascals-triangle": https://exercism.org/tracks/python/exercises/pascals-triangle |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note rows writes the first count rows of Pascal's triangle into o, row after row (1, 1 1, 1 2 1, ...), |
| 4 | note and returns how many numbers it wrote. |
| 5 | note Check it with: sh exercise.sh exercises/pascals-triangle |
| 6 | om2 |
| 7 | fn rows count ulong o edit ulong * to ulong |
| 8 | note replace this line with your solution |
| 9 | trap 13 |
| 10 | end |