Created
June 3, 2019 02:43
-
-
Save cmh114933/e049f6e06ad04d714459869f81093f1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Template for Fibonacci | |
/** | |
* Fibonacci | |
*/ | |
public class Fibonacci { | |
static int findFibonacci(int index){ | |
return 0; | |
} | |
public static void main(String[] args) { | |
System.out.println(findFibonacci(0) == 1); | |
System.out.println(findFibonacci(1) == 1); | |
System.out.println(findFibonacci(2) == 2); | |
System.out.println(findFibonacci(3) == 3); | |
System.out.println(findFibonacci(4) == 5); | |
System.out.println(findFibonacci(10) == 89); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment