Вы находитесь на странице: 1из 1

/*Instituto Politecnico Nacional

Escuela Superior de Inegenieria Mecanica y Electrica


FECHA:7/SEP/2015 HORA: 11:30
EJERCICIO C
EQUIPO #
INTEGRANTES: ANDREA GUADALUPE VICTORIO SANTIAGO
PROGRAMA:Diseo de un programa que calcula la x^y*/

#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<math.h>

using namespace std;

float calcXalaY(float x, float y);


void leeX(float &x);
void leeY(float &y);

int main()
{
float x,y,R;
leeX(x);
leeY(y);
calcXalaY( x, y);
}

void leeX(float &x)


{
cout<<"\n\n\t\tPROGRAMA PARA CALCULAR X\696";
cout<<"\n\n\tIntroduce el valor de X : \t";
cin>>x;
}
void leeY(float &y)
{
cout<<"\n\tIntroduce en valor de Y : \t";
cin>>y;

}
float calcXalaY(float x, float y)
{
float R;
R = pow(x,y);
cout<<"\n\tEl resultado es :\t"<<R<<"\n\n\t";
system("PAUSE");
}

Вам также может понравиться