mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-10 13:39:08 +08:00
Make Factorial
a proper utility class (#4267)
This commit is contained in:
@ -1,6 +1,9 @@
|
|||||||
package com.thealgorithms.maths;
|
package com.thealgorithms.maths;
|
||||||
|
|
||||||
public class Factorial {
|
public final class Factorial {
|
||||||
|
private Factorial() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate factorial N using iteration
|
* Calculate factorial N using iteration
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user