You are viewing a single comment's thread. Return to all comments →
it give Runtime error. What is problem of this code?
def F(n,a,b): if n == a: return b else: return F(n-1)*F(n-1)+F(n-2) a,b,c = input().strip().split(' ') a,b,c = [int(a),int(b),int(c)] print(F(c,a,b))
Seems like cookies are disabled on this browser, please enable them to open this website
Fibonacci Modified
You are viewing a single comment's thread. Return to all comments →
it give Runtime error. What is problem of this code?