Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.jbjares.dynamicProgramming;
- public class Fibonacci {
- public static void main(String[] args) {
- new Fibonacci().calc(317811,1);
- }
- public void calc(Integer start,Integer end){
- Integer f = (int) (start/((1+Math.sqrt(5))/2));
- System.out.println(f);
- if(f==end){
- return;
- }
- calc(++f,end);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement