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
English,
3 months ago
Social Sciences,
3 months ago
Computer Science,
3 months ago
Social Sciences,
6 months ago
Biology,
1 year ago
English,
1 year ago