python 3 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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