Skip to content

Instantly share code, notes, and snippets.

@levinotik
Created February 15, 2012 04:26
Show Gist options
  • Save levinotik/1833190 to your computer and use it in GitHub Desktop.
Save levinotik/1833190 to your computer and use it in GitHub Desktop.
int myFactorial( int integer)
{
if( integer == 1)
return 1;
else
{
return(integer*(myFactorial(integer-1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment