Fibonacci in Boo

Published on 28 April 2022 (Updated: 25 September 2022)

Fibonacci in Boo

Welcome to the Fibonacci in Boo page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

>def fib():
    a, b = 0L, 1L       # The 'L's make the numbers double word length (typically 64 bits)
    while true:
        yield b
        a, b = b, a + b

# Print the first 5 numbers in the series:
for index as int, element in zip(range(5), fib()):
    print("${index+1}: ${element}")

Fibonacci in Boo was written by:

If you see anything you'd like to change or update, please consider contributing.

How to Implement the Solution

No 'How to Implement the Solution' section available. Please consider contributing.

How to Run the Solution

No 'How to Run the Solution' section available. Please consider contributing.