Wipro interview question

Factorial and Fibonacci series in both c and java