0

python 3

What is the value of h(231,8) for the function below? def h(m,n): ans = 0 while (m >= n): (ans,m) = (ans+1,m-n) return(ans)

19th Aug 2018, 11:12 AM
Akash Takalkar
1 Resposta
+ 4
it does exactly the same as int(231/8) 28
19th Aug 2018, 11:23 AM
Louis
Louis - avatar