Question #294293

Consider a following function f:



def mys(m):



if m==1:



return(1)



else:



return(m+mys(m-1))

Expert's answer

#The function terminates for positive n with mys(n) = factorial of n
def mys(m):

if m==1:

return(1)

else:

return(m+mys(m-1))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS