int main() { std::cout << "2^3 = " << RaiseToPower(2,3) << std::endl; return 0; }
// Compute a^n unsigned int RaiseToPower(const unsigned int a, const unsigned int n) { if(n == 0) return 1; if(n > 1) return a*RaiseToPower(a,n-1); return a; }
// Compute a^n unsigned int RaiseToPower(unsigned int a, unsigned int n) { if(n=0) return 1; if(n>1) return a*RaiseToPower(a,n-1); return a; }