Files
zern/examples/euler/euler_06.zr
2026-07-01 14:43:39 +02:00

14 lines
288 B
Plaintext

include "std/io.zr"
func main[] : i64
sum_of_squares := 0
for i in 1..101
sum_of_squares += i * i
square_of_sum := 0
for i in 1..101
square_of_sum += i
square_of_sum = square_of_sum * square_of_sum
io.println_i64(square_of_sum - sum_of_squares)