Saturday, 21 March 2015


'Print Fibonacci Sequence Before the Given Number

INum = cint(inputbox("Enter The Number"))

F1=0
F2=1
Do
temp = temp&" "&F1
F3=F1+F2
F1=F2
F2=F3

Loop While F1<INum

msgbox temp 

No comments:

Post a Comment