RosettaCodeData/Task/Leonardo-numbers/BBC-BASIC/leonardo-numbers.basic

14 lines
207 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
REM >leonardo
:
PRINT "Enter values of L0, L1, and ADD, separated by commas:"
INPUT l0%, l1%, add%
PRINT l0% ' l1%
FOR i% = 3 TO 25
temp% = l1%
l1% += l0% + add%
l0% = temp%
PRINT l1%
NEXT
PRINT
END