Top
/
For-loops
/
Answer-11A-2
Answer to Question 11A-2
int power(int x, int n) { int p = 1; for(int i = 1; i <= n; i++) { p *= x; } return p; }