PLE:Unidad4Ejercicio1

using namespace std;
 * 1) include
 * 2) include
 * 3) include

int elevado( int x, int y); int main {       int a,b,result; cout<<"introduce un numero\n"; cin>>a; cout<<"introduce el exponente\n"; cin>>b; result= elevado(a,b); cout<<result; getch; } int elevado(int x, int y) { int c=0;

c=x; for(int i=0;i<y;i++) {

x=x*c; }       return x; }