Firetron’s Fib

1 244 Views No Comments 10 months ago
  • Returns the Fibonacci number at the specified index.

    Test Code:

    if not Load('done', false) then
    
      for i = 0, 30 do
        local fib = CC_Fib(i)
        Log(i..' is '..fib)
      end
    
      Save('done', true)
    
    end
    • This topic was modified 10 months, 1 week ago by Firetron. Reason: Removed output suggestions
    • This topic was modified 10 months, 1 week ago by Firetron. Reason: Removed input suggestions
    • This topic was modified 10 months, 1 week ago by Firetron. Reason: Made first twenty pre-calculated for efficiency
    • This topic was modified 8 months, 4 weeks ago by Firetron. Reason: Updated to my latest standards
    HaasScript Code
    Sign in or Register to download for free
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free