All pastes #1755265 Raw Edit

clueless

public text v1 · immutable
#1755265 ·published 2010-01-17 22:49 UTC
rendered paste body
def pot(x,n)  if not (natural?(x) and natural?(n))    then raise illegal arg val  end  return 1 if n==0  return x if n==1   return x*=pot(x,n-1)end#exampleputs pot(2,4)