Consider the following function mys:def mys(m): if m == 1: return(1) else: return(m*mys(m-1)) Which of the following is correct?
Answers
Answered by
3
Explanation:
a) The function always terminates with f(n) = n
b) The function always terminates with f(n) = factorial of n
c) The function terminates for non-negative n with f(n) = n
d) The function terminates for non-negative n with f(n) = factorial of n
Similar questions
Hindi,
2 months ago
Math,
2 months ago
Social Sciences,
4 months ago
Biology,
11 months ago
English,
11 months ago