Skip to content

Instantly share code, notes, and snippets.

@marcelcaraciolo
Created September 17, 2011 12:44
Show Gist options
  • Save marcelcaraciolo/1223910 to your computer and use it in GitHub Desktop.
Save marcelcaraciolo/1223910 to your computer and use it in GitHub Desktop.
fatorial
#include <stdio.h>
int fatorial(int n){
if (n == 1) {
return 1;
}
return fatorial(n-1) * n;
}
int main(){
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment