Dun & Bradstreet Interview Question

Write a function (in any language) to print the Fibonacci sequence to the given number n.