#include <stdio.h>
#include <stdlib.h>
#include "mymath.h"

double power(double base, int exponent) {
    int result = base;
    int i;

    if(exponent == 0) {
        return 1;
    }

    for(i=1; i<exponent; i++) {
        result = result * base;
    }

    return result;
}


