!Practice Program 4-9

!Display the Fibonacci series for a

!specified number of terms.

!do trace,slow (first,second,temp)

 

LET first = 1

LET second = 1

INPUT prompt "Numbers of terms? ":n

PRINT "Here is the Fibonacci series of "; n; "terms:"

FOR index = 1 to n

PRINT first;

LET temp = first + second

LET first = second

LET second = temp

NEXT index

END