@ -22,4 +22,16 @@ float expIN(int e, int num){
printf("%f\n", 1.0 / (float) expI((e*-1), num));
return (1.0 / (float) expI((e*-1), num));
}
float expF(int e, float num){
float prod = 1;
if(e==0){
return 1;
}else{
for(int i = 1; i <=e; i++){
prod *= num;
return prod;
@ -3,5 +3,6 @@
int expI(unsigned int e, int num);
float expIN(int e, int num);
float expF(int e, float num);
#endif // exponent.h