// // file: power_test.cpp // // program to test recursive power function // #include void main () { double base; int exp; cout << "This program raises a real number to a non-negative " << "integer power\n\n"; cout << "Enter the real number base: "; cin >> base; do { cout << "\nEnter the non-negative exponent: "; cin >> exp; } while (exp < 0); /* cout << endl << base << " raised to the " << exp << " power is " << power (base, exp) << endl << endl; */ }