From 03b4d8a03fb1b2cf93aaac0dc9d317ff9c2ba705 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 8 Jul 2019 12:12:58 +0200 Subject: c05/c06 normed, c07/c08 begining --- c05/ex01/ft_recursive_factorial.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c05/ex01') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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)); } -- cgit