interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / exercises / pascals-triangle / pascals-triangle.om

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