first commit

This commit is contained in:
yoyo
2024-11-03 06:24:26 +09:00
parent b8ffc0632a
commit f4b991f953
24 changed files with 5316 additions and 0 deletions

13
test/fib.yo Normal file
View File

@@ -0,0 +1,13 @@
package a
fn main() int {
x := fib(10);
return x;
};
fn fib(n int) int{
if n <= 1 {
return n;
};
return fib(n-1) + return fib(n-2);
};