Skip to content

Instantly share code, notes, and snippets.

@josejuan
Created June 22, 2012 22:59
Show Gist options
  • Save josejuan/2975652 to your computer and use it in GitHub Desktop.
Save josejuan/2975652 to your computer and use it in GitHub Desktop.
serie geométrica
// Serie geométrica:
int Calculo(int a, int r, int n) {
return (a * (ipow(r, n) - 1)) / (r - 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment