RosettaCodeData/Task/Fibonacci-sequence/Harbour/fibonacci-sequence-2.harbour

10 lines
161 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
#include "harbour.ch"
Function fibb(n)
local fnow:=0, fnext:=1, tempf
while (--n>0)
tempf:=fnow+fnext
fnow:=fnext
fnext:=tempf
end while
return(fnext)