Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Fibonacci numbers 0 - 93
//[Java] Coding Challenge - 06 (Fibonacci numbers 0 - 93) // //Title of this code //'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_45 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { int max=93; long fibi_00=0; long fibi_01=1; System.out.println("1-> "+fibi_00); for(int i=2;i<=max;i++){ fibi_00=fibi_00+fibi_01; fibi_01=fibi_00-fibi_01; System.out.println(i+"-> "+fibi_00); } // System.out.println("Hello, World!"); } }
run
|
edit
|
history
|
help
0
Quadratic_Equation.java
Array 11 grade (1-99)
Minimum Vertices to Traverse Directed Graph
Using Recursion reverse the Line
Multiplying Two Base-36 Numbers
2 dimensional array (filled in by the user)
Bubble Sort Java 2
rextester.java1
fst
test