Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

recursive fibonacci

    def fibo2(n):
        if n ==1 or n==0:
            return 1
        else :
            n = n+fibo2(n-1) 
            return n 
    print(fibo2(n1))
Source by onecompiler.com #
 
PREVIOUS NEXT
Tagged: #recursive #fibonacci
ADD COMMENT
Topic
Name
6+9 =