Improved project structure

This commit is contained in:
Eduard Urbach 2023-10-20 17:07:44 +02:00
parent 886ea27d54
commit 61af142930
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
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
}