Skip to content

ajnebro/mps2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

(Note: documentation generated by ChatGPT)

Factorial

A Java class that provides two methods to compute the factorial of an integer number.

Methods

compute This method takes an integer value as input and returns its factorial as an integer. If the input value is negative, it throws a NegativeValueException with a message indicating that the input value is negative.

computeBigValue This method uses the BigInteger class and takes an integer value as input. It returns the factorial of the input value as a BigInteger. If the input value is negative, it throws a NegativeValueException with a message indicating that the input value is negative.

Example Usage

imagen

This will output:

imagen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages