class Fibonacci { static int fibonacciMethod(int n){ if (n <=1 ){ return 1;} else{ return (fibonacciMethod(n-1)+fibonacciMethod(n-2)); } } }
class Fibonacci { static int fibonacciMethod(int n){ if (n <=1 ){ return 1;} else{ return (fibonacciMethod(n-1)+fibonacciMethod(n-2)); } } }