## Trending News

Promoted

# what is the Pseudocode of Fibonacci?

please answer me....

### 4 Answers

Relevance

- Anonymous1 decade agoFavorite 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)

ELSE

F3 = F1 + F2

WRITE (F3)

F1 = F2

F2 = F3

END IF-ELSE

END FOR

- rt11guruLv 61 decade ago
Assuming you want to print the sequence:

a = 1

print a

b = 1

print b

loop

c = a + b

print c

a = b

b = c

end loop

- Anonymous5 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.