Improved project structure

This commit is contained in:
Eduard Urbach 2023-10-20 17:07:44 +02:00
parent 3a002a7562
commit bd73132a30
Signed by: eduard
GPG key ID: 49226B848C78F6C8
18 changed files with 33 additions and 15 deletions

View file

@ -0,0 +1,19 @@
import sys
main() {
let f = fibonacci(11)
sys.exit(f)
}
fibonacci(n Int) -> Int {
mut b = 0
mut c = 1
for 0..n {
let a = b
b = c
c = a + b
}
return b
}