Computer Science, asked by vibhzypatil, 7 months ago

Consider the following function fpp.

def foo(m):

if m == 0:

return(0)

else:

return(m+form-1))

Which of the following is correct?

The function always terminates with f(n) factorial of n

The function always terminates with f(n) = n(n+1)/2

The function terminates for non negative with f(n) = factorial of n

The function terminates for nonnegative​

Answers

Answered by gaddamdinesh1504
2

Answer: Hope it helps !!

Explanation:

non negative with n(n+1)/2

Similar questions