#include using namespace std; float Pow(float x, int n); int main() { int i; float x=2; for(i =0; i < 20; i++) { cout << x <<"^" << i << " = " << Pow(x,i) << endl; } return 0; } float Pow(float x, int n) { // base case number 1 if (n == 0) { return 1; // base case number 2 } else if (n == 1) { return x; // recursive case } else { return x * Pow(x, n-1); } }