Computing Using Recursion
Raising integer to a power:
int Pow2 (int X, int N)
{ if (N == 0) return 1;
else return X * Pow2(X, N-1); }
Previous slide
Next slide
Back to first slide
View graphic version