what is the Pseudocode of Fibonacci?

please answer me....

4 Answers

  • Anonymous
    1 decade ago
    Favorite Answer

    if you want to calculate the first N Fibonacci numbers:

    WRITE 'Input the limit'

    READ N

    FOR i = 1 TO N DO

    IF (i = 1)

    F1 = 1

    WRITE (F1)

    ELSE IF (i = 2)

    F2 = 1

    WRITE (F2)


    F3 = F1 + F2

    WRITE (F3)

    F1 = F2

    F2 = F3



  • 4 years ago

    Fibonacci Pseudo Code

  • 1 decade ago

    Assuming you want to print the sequence:

    a = 1

    print a

    b = 1

    print b


    c = a + b

    print c

    a = b

    b = c

    end loop

  • Anonymous
    5 years ago

    For the best answers, search on this site https://shorturl.im/axyut

    The hell are you talking about. Pseudo code is pseudo code cause it's pseudo, the hell do we know what kinda pseudo code you are using at your classes or whatever.

Still have questions? Get your answers by asking now.