i made code that calculate fibonaci number (n)

but how i can determine the largest fibonaci number

```
import java .util.Scanner;
public class Fibo {
public static long fib(int n) {
if (n <= 1) return n;
else return fib(n-1) + fib(n-2);
}
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println( ":Enter number " );
int N = input.nextInt();
for (int i = 1; i <= N; i++)
System.out.println(i + ": " + fib(i));
}
}
```