Skip to content

Instantly share code, notes, and snippets.

@Blind-Striker
Last active October 29, 2017 14:47
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 Blind-Striker/fcc4f25e02eb8306955c35c814e02a65 to your computer and use it in GitHub Desktop.
Save Blind-Striker/fcc4f25e02eb8306955c35c814e02a65 to your computer and use it in GitHub Desktop.
C++ example for WebAssembly
int factorial(int n)
{
if(n > 1)
return n * factorial(n - 1);
else
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment