Improved project structure

This commit is contained in:
2023-10-20 17:07:44 +02:00
parent 886ea27d54
commit 61af142930
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
}