All pastes #1755226 Raw Edit

clueless

public text v1 · immutable
#1755226 ·published 2010-01-17 22:12 UTC
rendered paste body
def sum(n)  #ill args  if not (n.is_a?Integer and n>=0)    then raise ill arg val  end    #compute result  i=0  s=0  while i<n    i+=1    s+=i  end  return send