(requires: b>=0 )
(returns: a to the power of b)
let rec pow a b:=
if b=0 then 1 else a * pow a (b-1)
(i) What is the name of the function given above?
(ii) What type function is this?
(iii) What will be the return value if the argument a=2 and b=3?
Answers
Answered by
0
Answer:
let rec pow a b:=
if b=0 then 1 else a * pow a (b-1)
(i) What is the name of the function given above?
(ii) What type function is this?
(iii) What will be the return value if the argument a=2 and b=3?
Explanation:
Similar questions