MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / main

Method main

Recursion/Code/nthFibonacci.java:23–30  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

21
22 // Driver Code
23 public static void main(String args[])
24 {
25 Scanner in = new Scanner(System.in); // to take input we use scanner class.
26 System.out.print("Enter a number : ");
27 int n = in.nextInt();
28
29 System.out.println("Fibonacci num of " + n + " is : " + fibo(n));
30 }
31}

Callers

nothing calls this directly

Calls 1

fiboMethod · 0.95

Tested by

no test coverage detected