Category:OPL: Difference between revisions
Content added Content deleted
No edit summary |
(Make into a regular language page) |
||
Line 1: | Line 1: | ||
{{language}}{{stub}} |
|||
FIBON: |
|||
REM Fibonacci sequence is generated to the Organiser II floating point variable limit. |
|||
REM This method was derived from (not copied...) the original OPL manual that came with the CM and XP in the mid 1980s. |
|||
REM CLEAR/ON key quits. |
|||
REM Mikesan - http://forum.psion2.org/ |
|||
LOCAL A,B,C |
|||
A=1 :B=1 :C=1 |
|||
PRINT A, |
|||
DO |
|||
C=A+B |
|||
A=B |
|||
B=C |
|||
PRINT A, |
|||
UNTIL GET=1 |