Skip to content

Instantly share code, notes, and snippets.

@sauloh
Created November 18, 2017 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sauloh/cfeb4f0c90aaa7d9562d78c668e36328 to your computer and use it in GitHub Desktop.
Save sauloh/cfeb4f0c90aaa7d9562d78c668e36328 to your computer and use it in GitHub Desktop.
Code Snip for Shellter Coding Lesson
int sum(int num)
if num is 1:
return 1
else
return num + sum(num - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment