Advertisement
STANAANDREY

LSD3 3

Oct 14th, 2022
937
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. def gauss_sum(n):
  2.     if n == 0:
  3.         return 0
  4.     else:
  5.         return n + gauss_sum(n - 1)
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement