From 8804e5a0e023f98578c82ea9ec5923c5e32ba24a Mon Sep 17 00:00:00 2001 From: Guan Inf <2307786059@qq.com> Date: Mon, 2 Jun 2025 15:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8F=90=E4=BA=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/factorial.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/factorial.cpp b/src/factorial.cpp index cc3cb1f..a3caa97 100644 --- a/src/factorial.cpp +++ b/src/factorial.cpp @@ -1,3 +1,4 @@ +// 阶乘函数 int factorial(int number) { return number <= 1 ? number : factorial(number - 1) * number; } \ No newline at end of file