Skip to content

Commit

Permalink
Added new example: Show Fibonacci numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Feb 20, 2024
1 parent c825bcb commit 437b54e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/100-fibonacci.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
10 LET MAX = 50000
20 LET X = 1 : LET Y = 1
30 IF X > MAX THEN GOTO 100
40 PRINT X, "\n"
50 X = X + Y
60 IF Y > MAX THEN GOTO 100
70 PRINT Y, "\n"
80 Y = X + Y
90 GOTO 30
100 END

0 comments on commit 437b54e

Please sign in to comment.