42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_compute_power_rec.c File Reference

The file containing the my_compute_power_rec function. More...

#include "my.h"

Functions

int my_compute_power_rec (int nb, int p)
 Returns the power (p) of the number (nb)
 

Detailed Description

The file containing the my_compute_power_rec function.

Author
Nicolas TORO

Function Documentation

◆ my_compute_power_rec()

int my_compute_power_rec ( int nb,
int power )

Returns the power (p) of the number (nb)

Note
Returns 0 if the power is negative
Parameters
nbThe number to calculate
powerThe power of the number
Author
Nicolas TORO