basic for loop + examples -> era3

This commit is contained in:
Neemek 2026-07-13 10:01:13 +02:00
parent dd7af341a3
commit 0bc8b2ef55
Signed by: neemek
GPG key ID: 84FFE4D7D40AB25E
24 changed files with 222 additions and 201 deletions

View file

@ -20,9 +20,10 @@ tot = tot * 6.0
# get the absolute value of a number
fn abs(x: float) -> float {
if x < 0.0 {
return -x
-x
} else {
x
}
return x
}
# calculate an approximation of the square root of tot using