Skip to content

Commit

Permalink
Odin
Browse files Browse the repository at this point in the history
  • Loading branch information
ghluka committed Mar 30, 2024
1 parent 679af1e commit b67adf7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/O/Odin/fibonacci.odin
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package fibonacci

import "core:fmt"

main :: proc() {
a: int = 0;
b: int = 1;
for i := 0; i < 10; i += 1 {
fmt.println(a);
b += a;
a = b - a;
}
}

0 comments on commit b67adf7

Please sign in to comment.