+ 2

code fibonachi numbers with array ??

I know how write fibonachi codes but i cant do this with array plz help me

5th Sep 2018, 3:13 PM
Behroo
Behroo  - avatar
4 odpowiedzi
17th Sep 2018, 10:59 AM
Parmal Chouriya
Parmal Chouriya - avatar
+ 5
Behroo initialise array elements to zero.. set 1 and 1 for first two elements directly... loop through all elements of array from element 3 to n.... i elemnt in for loop for array should be summation of i-1 and i-2 elements
5th Sep 2018, 3:32 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
tnq so much
18th Sep 2018, 11:53 AM
Behroo
Behroo  - avatar
17th Sep 2018, 10:58 AM
Parmal Chouriya
Parmal Chouriya - avatar