SUNY Geneseo Department of Mathematics
Tuesday, September 29
Math 303
Fall 2015
Prof. Doug Baldwin
add( A, first, last )
if last = first
return A[first]
else
return A[first] + add( A, first+1, last )
factorial( n )
if n = 0
return 1
else
return n * factorial( n-1 )