Assignment 1 analysis - SENECA-DSA555/Cathy-w17 GitHub Wiki
n squared : n^2
double power (double base, unsigned int n){
double rc=1;
for(int i=n;i!=0;i--){
rc=rc*base;
}
return rc;
}
n squared : n^2
double power (double base, unsigned int n){
double rc=1;
for(int i=n;i!=0;i--){
rc=rc*base;
}
return rc;
}