Files
zern/examples/euler2.zr
2025-07-24 14:06:15 +02:00

13 lines
231 B
Plaintext

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
io.print_i64(sum)