codice:
#include <iostream>

using namespace std;

// Non funziona con esponenti negativi
int power(int b, int e) {
	if (e < 1) return 1;
	return b*power(b, e-1);
}

int main(void) {
	int base, esponente;
	
	cout << "Base: ";
	cin >> base;
	cout << "Esponente: ";
	cin >> esponente;
	cout << "Risultato: " << power(base, esponente) << endl;
}