summaryrefslogtreecommitdiff
path: root/progs/a525.py
blob: 06cd0a537fd68614fee900dc85607c85d5c20622 (plain)
1
2
3
4
5
def sum_series(n):
  if n < 1:
    return 0
  else:
    return n + sum_series(n - 2)