// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
// Recursively x^n
#include
int x_to_the_n(int, int) ;
int main()
{
int x = 5 ;
int n = 3 ;
cout << "if x = << x << " and n = " << n << endl ;
cout << "x^n = " << x_to_the_n(x, n) << endl ;
return 0 ;
}
int x_to_the_n(int x, int n)
{
if(n > 1)
{
return x * x_to_the_n(x, n-1) ;
}
else
return x ;
}
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)