Fibonacci....anyone..??

Sweden

Member
Nov 8, 2000
59
0
0
Hello

doing exercises in VB programming
Have the Fibonacci series, 1,1,2,3,5,8,.....
Anybody know the formula to run it in the computer..?
Swe
:D
 

Damascus

Golden Member
Jul 15, 2001
1,434
0
0


<< Hello

doing exercises in VB programming
Have the Fibonacci series, 1,1,2,3,5,8,.....
Anybody know the formula to run it in the computer..?
Swe
:D
>>



"Run it in the computer"? What do you mean by that?
 

WillyF1uhm1

Senior member
Aug 10, 2001
407
0
0
I was thinking along this line

i=0
A = 1
B = 1
C = A + B

Do While i<10
A = B
B = C
C = A + B
i = i+1
Loop

Or something like it...