~Random Post~
What I learn from Class today :
Given Number: 1,1,2,3,5,8,13,21,34,55,89
Begin
Initialise X = 1
Initialise Y = ∞
Initialise Z = ∞
Do while X<100
Display X
Z = Y + X
Y = X
X = Z
Loop
End
Hmm.. Understand ?? Looks simple if you know how to write one yourself.
<< Home