#include <stdio.h>

int ft_recursive_power(int nb, int power){
    if(nb == 1 || power == 0)
        return 1;
    if(power < 0)
        return 0;

    return nb * ft_recursive_power(nb, power-1);

}


int main() {
    int a = ft_recursive_power(2,10);
    printf("%d", a);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: