SUNY Geneseo Department of Mathematics
Thursday, October 1
Math 303
Fall 2015
Prof. Doug Baldwin
multiply( x, y ) // x is a natural number
if x = 0
return 0
else if x is even
return multiply( x/2, 2*y )
else
return multiply( x-1, y ) + y