FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

package com.recursion; import java.util.Scanner; public class Fibonacci { public static void main(String[] args) { Scanner reader = new Scanner(System.in); System.out.print("Number to calculate: "); long Number= reader.nextLong(); reader.close(); System.out.println("Nth Fibonacci for "+Number+" is "+fib(Number)); } static long fib(long n) { if (n

Back | FazBrowse Home | New Git URL