For what value of n would g(57,n) return 7?
def g (m,n):
res = 0
while m >= n :
res = res + 1
m = m - n
return (res)
n value should be 8 in order to g(57,n) returns 7..
Function g works as Euclidean division..
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment