• + 2 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))