Following logic for Fibonocci int f1=0; intf2=1; int i=0; while(i<8){ int f3=f1+f2; f1=f2; f2=f3; System.out.println(f3); i++; }
Chat with our AI personalities
132134...
The Fibonacci series.
A Fibonacci number, Fibonacci sequence or Fibonacci series are a mathematical term which follow a integer sequence. The first two numbers in Fibonacci sequence start with a 0 and 1 and each subsequent number is the sum of the previous two.
The Fibonacci sequence is named after Leonardo of Pisa, who was known as Fibonacci. Fibonacci's 1202 book Liber Abaciintroduced the sequence to Western European mathematics, although the sequence had been previously described in Indian mathematics.
There is the Fibonacci sequence but what is the Fibonacci code?