Complete the following function for calculating the value of a number (base) raised to a power. Assume that power is positive.
int raiseTo_power (int base, int power)
int ans;
if (power == ______________ )
ans = ______________ ;
else
ans = ____________ *______________ ;
return ans;
}
```
if (power == 1)
ans = base;
else
>
ans = base * raiseTo_power (base, power-1);
```
You might also like to view...
A server technician is procuring rail kits for a 2U rack mount server. Company policy dictates all rail kits must allow full extension of the system out of the rack. Given these requirements, which of the following rail kit types should the technician obtain?
A. Static rail kit B. Sliding rail kit C. Rail kit ears D. Sliding shelf rails
The percentage of calls in which the user hangs up before support staff respond is called ____________________.
Fill in the blank(s) with the appropriate word(s).