#include <iostream>
using namespace std;
double potencia(double base, int pot);
double potencia(double base, double pot);
int main() {
cout << potencia(5.2, 3) << endl;
cout << potencia(4.0, 2.0);
cin.get(); cin.get();
}
double potencia(double base, int pot) {
double r = 1;
for (int y=0; y<pot; y++)
r = r * base;
return r;
}
double potencia(double base, double pot) {
cout << "\npotencia version 2\n";
return 0;
}