text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_recursive_power.c                               :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: cado-car <cado-car@student.42sp.org.br>    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2021/06/14 11:21:01 by cado-car          #+#    #+#             */
  /*   Updated: 2021/06/14 11:24:43 by cado-car         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  int	ft_recursive_power(int nb, int power)
  {
  	if (power < 0)
  		return (0);
  	else if (power == 0)
  		return (1);
  	else if (power == 1)
  		return (nb);
  	else
  		return (nb * ft_recursive_power(nb, power - 1));
  }
  