Q22Numerical3 Marks28 Apr 2024
What is the output of the following snippet of code? Enter an integer as your answer.
```
def calculate(m, n):
if n == 1:
return m
return m + calculate(m, n - 1)
c1 = calculate(3, 2)
c2 = calculate(4, 3)
c3 = calculate(5, 4)
print(c1 + c2 + c3)
```
Press Enter to check.