changed if to while to print fib based on range