From 89394d0fab076765b637b0fe643d8f8950639817 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 2 Feb 2025 20:13:05 +0000 Subject: Add int arithmetic example --- examples/08-int-arithmetic/src/IntArithmetic.shed | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/08-int-arithmetic/src/IntArithmetic.shed (limited to 'examples/08-int-arithmetic/src') diff --git a/examples/08-int-arithmetic/src/IntArithmetic.shed b/examples/08-int-arithmetic/src/IntArithmetic.shed new file mode 100644 index 00000000..8122cac3 --- /dev/null +++ b/examples/08-int-arithmetic/src/IntArithmetic.shed @@ -0,0 +1,7 @@ +pub fun main() ! Io -> Unit { + if (4 * 5 == 20) { + print!("pass"); + } else { + print!("fail"); + } +} -- cgit v1.2.3