interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / exercises / triangle / triangle.om

19 lines · 765 bytes Raw Blame History
1note Exercism-style exercise "triangle": https://exercism.org/tracks/python/exercises/triangle
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note The sides a b c form a triangle when each is greater than 0 and the sum of any two is at least
4note the third. equilateral: a triangle with all three sides equal; isosceles: a triangle with at
5note least two sides equal; scalene: a triangle with all sides different.
6note Check it with: sh exercise.sh exercises/triangle
7om2
8fn equilateral a f64 b f64 c f64 to bool
9note replace this line with your solution
10trap 13
11end
12fn isosceles a f64 b f64 c f64 to bool
13note replace this line with your solution
14trap 13
15end
16fn scalene a f64 b f64 c f64 to bool
17note replace this line with your solution
18trap 13
19end