UNB/ CS/ David Bremner/ teaching/ cs2613/ labs/ L20/ fibgen.py
#!/usr/bin/python3

def fibgen(max):
    a, b = 0, 1
    while a < max:
        yield a
        a, b = b, a + b