Skip to content

Instantly share code, notes, and snippets.

@jakeboxer
Created November 8, 2012 09:40
Show Gist options
  • Save jakeboxer/4037794 to your computer and use it in GitHub Desktop.
Save jakeboxer/4037794 to your computer and use it in GitHub Desktop.
Factorial in C
int factorial(int number) {
if (number == 1) {
return 1;
} else {
return number * factorial(number - 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment