title: sum of factors of a given number
body: <p>i have written this  code which finds factors of a number .after thinking and trying so much i could not get the sum of the numbers I get in output.I wish to get the sum of these numbers as output recursively.here's my code:</p>
  
  <pre><code>def p(n,c):
      s = 0
      if c &gt;= n:
          return n
      if n % c == 0:
          s += c
          print(s,end=',')
      return p(n,c+1)
  n = int(input('enter no:'))
  c = 1
  print(p(n,c))
  </code></pre>