Posts

Showing posts with the label Fibonacci

IP - Program to generate Fibonacci Series

Image
Write a program to generate a Fibonacci series up to a given number using Net beans (Java)? Introduction to Fibonacci Series  Lets try to understand  What is Fibonacci Series?   It is a series of numbers that follows some pattern generated by adding previous two numbers, where first two numbers are 0 and 1.  Fibonacci series has quite a lot contribution to our life. Browse the internet and you will be able to find lot many, just by googling it. I have also summarized these useful links a single page -  Click here  to get more information about Fibonacci series.  Fibonacci Series using Java (Net beans)  private void Fibogen ActionPerformed (java.awt.event.ActionEvent evt) {                                              int N=Integer.parseInt(TF_UL.getText());         int a=0,b=1,c=a+b;         TA_FS.append(a+", " + b + ", ");         while(c<=N)         {             TA_FS.append(c+", ");             a=b;