From e20a1c7504b43f7b0ea84042565eb8fc15e0fb91 Mon Sep 17 00:00:00 2001 From: zanninso Date: Tue, 23 Apr 2024 01:11:15 +0100 Subject: [PATCH] docs: adding egde case note --- subjects/java/checkpoints/factorial/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subjects/java/checkpoints/factorial/README.md b/subjects/java/checkpoints/factorial/README.md index 348eccd6d..349d7f5c3 100644 --- a/subjects/java/checkpoints/factorial/README.md +++ b/subjects/java/checkpoints/factorial/README.md @@ -6,6 +6,8 @@ In a file named `Factorial.java` write a function `factorial` that calculates th > The factorial of a non-negative integer n (denoted as n!) is the product of all positive integers less than or equal to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. +> Note: The factorial of 0 is 1, according to the [convention](https://www.chilimath.com/lessons/intermediate-algebra/zero-factorial/) + ### Expected Functions ```java