MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Method main

Java/Recursion/Fibonacci.java:23–35  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

21 }
22
23 public static void main(String args[]) {
24 Scanner I = new Scanner(System.in);
25 System.out.println("Enter the number n, to get the nth fibonacci number");
26 int n = I.nextInt();
27 if (n < 3)
28 System.out.println(n - 1);
29 else
30 {
31 System.out.println("0 1 ");
32 nth_fibo(0, 1, n);
33 }
34 I.close();
35 }
36}

Callers

nothing calls this directly

Calls 1

nth_fiboMethod · 0.95

Tested by

no test coverage detected