5.13 How to print Fibonacci Series in Java Tutorial | Lecture

///5.13 How to print Fibonacci Series in Java Tutorial | Lecture

5.13 How to print Fibonacci Series in Java Tutorial | Lecture

FavoriteLoadingAdd to favorites

Join the live batch :

Java468x60

40% off on selected courses only for Subscribers, to know more send an email on teluskotraining@gmail.com

Recommend Books :

1. Head First Java :
2. Java Complete Reference :

The Fibonacci number is a set of numbers that starts with a one or a zero, followed by a one, and proceeds based on the rule that each number is equal to the sum of the preceding two numbers, print the series till the number n.

Editing Monitors :

Editing Laptop :
ASUS ROG Strix – (new version)

Camera :
lens :

Mics

Check out our website:

Follow Telusko on Twitter:

Follow on Facebook:
Telusko :
Navin Reddy :

Follow Navin Reddy on Instagram:

Subscribe to our other channel:
Navin Reddy :
Telusko Hindi :

Subscribe to the channel and learn Programming in easy way.

Java Tutorial for Beginners :

Scala Tutorials for Java Developers :

C Tutorial Playlist :

Android Tutorial for Beginners Playlist :

XML Tutorial :

Design Patterns in Java :

Socket Programming in Java :

Spring MVC Tutorial :

OpenShift Tutorial for Beginners :

Spring Framework with Maven :

Sql Tutorial for Beginners :

String Handling in Java :

Array in Java :

Java Servlet :

Exception Handling in Java :

source

By |2020-08-23T09:01:47+00:00August 23rd, 2020|Java Video Tutorials|26 Comments

26 Comments

  1. Itz Deepak August 23, 2020 at 9:01 am - Reply

    Felling blessed
    I'have a teacher like u

  2. abinaya abi August 23, 2020 at 9:01 am - Reply

    Your voice is not audible

  3. Vishnu Netha August 23, 2020 at 9:01 am - Reply

    I am unable to use the scanner. While I type shift+cntrl+i it is giving me (scanner cannot be resolved) .How Can I use the scanner?Someone please help me 2 get through this.

  4. SHUV SHAW August 23, 2020 at 9:01 am - Reply

    very helpful

  5. SHUV SHAW August 23, 2020 at 9:01 am - Reply

    int i=0,j=1,k=(i+j);
    while(k<=10000)
    {
    System.out.print(k+" ");
    k=i+j;
    i=j;
    j=k;

    }

  6. SHUV SHAW August 23, 2020 at 9:01 am - Reply

    int i=0,j=1,k=(i+j);
    while(k<=100)
    {
    System.out.print(k+" ");
    j=i;
    i=k;
    k=i+j;
    }

  7. saniya .s August 23, 2020 at 9:01 am - Reply

    As u hv given k> =n
    Then y it's printing numbers below 22..it should print greater numbers na??

  8. Jaya Mae Homerez August 23, 2020 at 9:01 am - Reply

    Why you printed out the 1 and 1
    Is that cheat ?
    I want a code that will start at 1
    1

  9. Yugal Singh August 23, 2020 at 9:01 am - Reply

    In previous tutorials,you didn't tell us about how to take input from the user and how to import package or whatever you have done here. This playlist is for beginners and this made it li'l difficult.

  10. tanaji bhosale August 23, 2020 at 9:01 am - Reply

    check it for 10………………12 also come in it

  11. prasad sardesai August 23, 2020 at 9:01 am - Reply

    package learningjava;

    public class Fibonacci {

    public static void main(String[] args) {

    int a=0;

    int b =1;

    int c;

    // 1,2

    for (int i=1; i<=10; i++) {

    c=a+b;

    System.out.println(c);

    a=b;

    b=c;

    }

    }

    }

  12. Shatarchi Goyal August 23, 2020 at 9:01 am - Reply

    You sorted my life's 50% problems. Hats off!

  13. Ankit Raj Singh Negi August 23, 2020 at 9:01 am - Reply

    Sir agar hum k =0, a=1,b=0;
    While(k<=50)
    {
    K=a+b;
    S.o.p(+k " ");
    a=b;
    b=k;
    }
    Fir hame s.o.p(1 1) likne ki jarurat nahi padegi…

  14. jkb sj August 23, 2020 at 9:01 am - Reply

    didnt work 🙁

  15. Desi Boyz August 23, 2020 at 9:01 am - Reply

    This is not the right way to implement Fibonacci series.

  16. Sunkara RamaRao August 23, 2020 at 9:01 am - Reply

    Simple

  17. Mario Soto August 23, 2020 at 9:01 am - Reply

    int dim = 22;
    int arreglo[] = new int[dim];
    for(int x=0;x<dim;x++) {
    if(x==0 || x==1) {
    arreglo[x] = x;
    }else{
    arreglo[x] = arreglo[x-2] + arreglo[x-1] ;
    }
    }
    for(int x=0;x<dim;x++) {
    System.out.print(arreglo[x] + "-");
    }

  18. hakima enn August 23, 2020 at 9:01 am - Reply

    mercii bq

  19. baibhav ghimire August 23, 2020 at 9:01 am - Reply

    Better to use Dynamic programming to avoid this sort of Recursive designs…public class FiboDynamic {

    public static int fibo(int n){

    int [] temp = new int[n+1];

    temp[0]=1;
    temp[1]=1;
    for(int i=2;i<=n;i++){

    temp[i]=temp[i-1]+temp[i-2];

    }
    System.out.println(Arrays.toString(temp));
    return temp[n];

    }

  20. Anil Deshpande August 23, 2020 at 9:01 am - Reply

    Your approach Towards problem should have more clarity on Transformation from actual Mathematics problem and How is Transformed to a computer problem and you should give more meaningful variable names , It should appear as if Iam watching a crime episode and that becomes more interesting as we get towards catching the culprit by getting the clues .
    All that is missing in your explanation , atleast you could start with what is previous and what is current value and what the result is

  21. Subhojeet Sinha August 23, 2020 at 9:01 am - Reply

    class FibonacciExample1{

    public static void main(String args[])

    {

    int n1=0,n2=1,n3,i,count=10;

    System.out.print(n1+" "+n2);//printing 0 and 1

    for(i=2;i<count;++i)//loop starts from 2 because 0 and 1 are already printed

    {

    n3=n1+n2;

    System.out.print(" "+n3);

    n1=n2;

    n2=n3;

    }

    }}

  22. srikanth Reddy August 23, 2020 at 9:01 am - Reply

    Easy one now. thanks

  23. Digvijay kumar August 23, 2020 at 9:01 am - Reply

    dear sir in this program u print 1 1 direct any other logic to not print 1 1 direct

  24. Smart Programming August 23, 2020 at 9:01 am - Reply

    its always pleasure to watch your tutorials, always got something new from each tutorial, thanks a lot sir 👍👍

  25. Dipankar Ghosh August 23, 2020 at 9:01 am - Reply

    Sir,you did not teach us
    how could i take the value from the user

  26. Jittu Susan Mathew August 23, 2020 at 9:01 am - Reply

    Fantastic vd0 ….But voice not that audible…..

Leave A Comment

*