Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created March 3, 2014 18:32
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 Fhernd/9331482 to your computer and use it in GitHub Desktop.
Save Fhernd/9331482 to your computer and use it in GitHub Desktop.
Clase que contiene el método de cómputo de la función factorial.
public class ClaseFactorial
{
public long ComputarFactorial (int numero)
{
long factorial = 1;
while (n>0)
{
factorial = factorial * numero;
--numero;
}
return factorial;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment