Skip to content

Instantly share code, notes, and snippets.

@shernshiou
Created November 16, 2011 08:52
Show Gist options
  • Save shernshiou/1369609 to your computer and use it in GitHub Desktop.
Save shernshiou/1369609 to your computer and use it in GitHub Desktop.
Recursive
//Recursive function that add a+1 until it reach 10
int myFunction(int a)
{
if(myFunction(a+1) > 10)
return a;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment