Advertisements
Advertisements
Question
Identify in the following program.
let rec gcd a b:=
if b <> 0 then gcd b (a mod b) else return a
The statement which terminates the recursion?
One Line Answer
Advertisements
Solution
return a (when b becomes 0).
shaalaa.com
Is there an error in this question or solution?
