fibo0.py

#!/usr/bin/env python
#
# Print some Fibonacci numbers
# Author:  Yotam Medini  [email protected] -- Created: 2006/May/13
#

import sys

# First two Fibonacci numbers
f1 = 0
f2 = 1
while f1 < 10000:
    sys.stdout.write("Fibonacci: %d\n" % f1)

    # !!!  Please finish the exercise here  !!!
    #
    # f3 = ???   compute next Fibonacci number
    # Give next values to  f1  and  f2
    
sys.exit(0)

    

Generated by GNU enscript 1.6.4.