Skip to content

Instantly share code, notes, and snippets.

@vojto
Created March 30, 2010 19:35
Show Gist options
  • Save vojto/349498 to your computer and use it in GitHub Desktop.
Save vojto/349498 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
printf("%d\n", faktorial(10));
}
int faktorial(int n) {
if(n == 1)
return 1;
return n * faktorial(n-1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment