trace tables

hi,i would like some help in determining what a recursive function will calculate. What i do know is that a trace table should be used,i am how ever confused as to how to go about using it. sample question:

in terms of a,b,c what does the function calculate

private function recurse( a as integer,b as integer,c as integer)

if b 'asssume b will always be >1
return b
else
return (a*c) * recurse(a,b-1,c)
end if
end function
closed account (SECMoG1T)
What if b 'asssume b will always be >1return b when does it return when b==1 ??
b will always be > 1
Topic archived. No new replies allowed.