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