Java program to find nth fibonacci number using loops (iteration)