Recursion

Run Settings
LanguagePython
Language Version
Run Command
def tri_recursion(k): if(k > 0): print("k = ", k) # result = tri_recursion(k - 1) result = k + tri_recursion(k-1) print("result = ",result) else: result = 0 return result print("Recursion Example Results") tri_recursion(4)
Editor Settings
Theme
Key bindings
Full width
Lines