Write a program to generate the Fibonacci series up to a given number using both recursive and iterative methods.