Tuesday 10 April 2012

Fibonacci series


n=InputBox("enter the value")
a=0
b=1
For i=1 to n-1
If a=0 Then
print a

End If
    c=a+b
a=b
print a
b=c
Next









No comments:

Post a Comment