Power Using Recursion Jian-An, Lin 林建安 2022 Jan 6th Algorithms C/C++, Recursion 123456789101112int power(int m, int n){ if(n==0) return 1; else return power(m, n-1)*m;}int main(int argc, const char * argv[]) { printf("%d\n", power(2, 5)); return 0;} Faster solution12345678910111213int power(int m, int n){ if(n==0) return 1; if(n%2==0) return power(m*m, n/2); else return m*power(m*m, (n-1)/2);}int main(int argc, const char * argv[]) { printf("%d\n", power(2, 5)); return 0;}