support up to 6 args, euler

This commit is contained in:
2025-06-01 16:12:47 +02:00
parent 7fa08d8b37
commit 8a0fbac739
12 changed files with 213 additions and 24 deletions

16
examples/euler2.zr Normal file
View File

@@ -0,0 +1,16 @@
func print_i64[x : I64] : I64
printf("%ld\n", x)
func main[] : I64
let sum: I64 = 0
let a: I64 = 0
let b: I64 = 1
while a < 4000000
if a % 2 == 0
sum = sum + a
let temp: I64 = b
b = a + b
a = temp
print_i64(sum)