aboutsummaryrefslogtreecommitdiff
path: root/c05/ex01
diff options
context:
space:
mode:
Diffstat (limited to 'c05/ex01')
-rw-r--r--c05/ex01/ft_recursive_factorial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/c05/ex01/ft_recursive_factorial.c b/c05/ex01/ft_recursive_factorial.c
index 615cd04..288e61f 100644
--- a/c05/ex01/ft_recursive_factorial.c
+++ b/c05/ex01/ft_recursive_factorial.c
@@ -6,15 +6,15 @@
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/06 17:15:10 by cacharle #+# #+# */
-/* Updated: 2019/07/06 17:18:58 by cacharle ### ########.fr */
+/* Updated: 2019/07/08 12:07:48 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
-int ft_recursive_factorial(int nb)
+int ft_recursive_factorial(int nb)
{
if (nb < 0)
return (0);
if (nb == 0 || nb == 1)
return (1);
- return nb * ft_recursive_factorial(nb - 1);
+ return (nb * ft_recursive_factorial(nb - 1));
}