I wrote this method that finds the nth term of the fibonacci sequence, and it works perfectly fine if you put in number like 10, but if the number gets bigger for example 100, the console window won't even show up. Does this have to do with the maximum size of an int? Or maybe a problem with the stack size? I don't care about negatives I'll deal with that later. But what is the problem with my code?
public static int fibonacci(int n){
if(n == 0 || n == 1) return 1;
return fibonacci(n-2) + fibonacci(n-1);
}