k–; it`s the same that k= k-1
When g(i) and n%i==0 are true,the function subtract 1 to k,
if k==0 then the function returns i; but if i>= n, then h returns 0.
The two ” if ” clauses are independent.
Without the function g we can`t say anything more.
2
solved How does this functions work? [closed]