Competitions
DSA Week 1
Recursion - 1
Implement the recursive function:
Input
One integer n (0 ≤ n ≤ 1000).
Output
Print the value of f(n).
Input example #1
5
Output example #1
15
Implement the recursive function:
One integer n (0 ≤ n ≤ 1000).
Print the value of f(n).
5
15