Baseline: tree as shared

This commit is contained in:
alexm committed 2026-10-05 03:03:38 +00:00
commit 659c03bbf8
1471 files changed
+990535

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
// Numbers: every arithmetic operator, both numeric types, and the conversions between them.
// EXPECT: 3.5
// EXPECT: 3
// EXPECT: 1
// EXPECT: -4
// EXPECT: 512
// EXPECT: 2.0
// EXPECT: 27
// EXPECT: 28
// EXPECT: 5
// EXPECT: 7 -7 -7
DECLARE A, B : INTEGER
DECLARE X : FLOAT
A <- 7
B <- 2
OUTPUT A / B
OUTPUT A DIV B
OUTPUT A MOD B
OUTPUT -2 ^ 2
OUTPUT 2 ^ 3 ^ 2
OUTPUT 4 / 2
X <- 27.54
OUTPUT INT(X)
OUTPUT ROUND(X)
OUTPUT ABS(-5)
OUTPUT 7 DIV 1, " ", -7 DIV 1, " ", (-7) DIV 1