Ideas

Loops

Compare the procedures fib and fibber. What do they do? How do they work?

	To fib :a
If :a<3 [Output 1]
(Output (fib (:a - 1)) + (fib (:a - 2)))
End

To fibber :a :b
Print :a
fibber :b (:a + :b)
End



©MathsNet 1996