langatator/examples/fibo.ltor
Matthieu Bessat c3af6bd5ca feat: add ascii and newline prints
fix(Evaluator): issue over variable reducing priority
2022-05-15 22:40:20 +02:00

13 lines
209 B
Text

# print the 20 first fibonacci numbers
set n to 20
set a to 0
set b to 1
print_number(a)
set i to 0
while i < (n-1) do
set _a to a
set a to a+b
set b to _a
print_number(a)
set i to i+1
end