I\'m programming for a while now(beginner), and recursive functions are a somewhat abstract concept for me. I would not say I\'m stuck, program works fine, I\'m just wonderi
Simple but does n number of multiplications. Above examples are more efficient because they group two operations in one iteration
int power(int x, int n) { if (n == 0) return 1; return x * power(x, n-1); }