Skip to main content
Inspiring
May 30, 2024
Question

Fibonacci series

  • May 30, 2024
  • 7 replies
  • 0 views

Hi All ,

I am trying to get fibonacci series with the following rule .But getting unexpected output .

Let me know where am I doing it wrong .

TIA

7 replies

jayaprakashr0001
Participating Frequently
May 30, 2024

Hi [mention:23b56b00ee924454b087103e2086677d:e9ed411860ed4f2ba0265705b8793d05] ,

In appending values you used , add the values so you will get the Fibonacci series output.

a!localVariables( 
  append(
    ri!list, 
    reverse(ri!list)[1] + reverse(ri!list)[2]),
  
)

Inspiring
May 30, 2024

Thanks .Working now 

June 13, 2024

[mention:23b56b00ee924454b087103e2086677d:e9ed411860ed4f2ba0265705b8793d05] and [mention:44bed26f1d96482687e4003414c7d8ec:e9ed411860ed4f2ba0265705b8793d05]  What is the use of 'value' input (value_)?

Inspiring
June 15, 2024

It will store  the result of each iteration  and append to the list