Ver Mensaje Individual
  #4  
Antiguo 31-01-2005
Avatar de barman
barman barman is offline
Miembro
 
Registrado: may 2003
Posts: 139
Reputación: 24
barman Va por buen camino
Category

Math Routines

Syntax

#include <math.h>
double pow(double x, double y);
long double powl(long double x, long double y);


tu codigo quedaria asi.
#include <iostream.h>
#include <math.h>
void main(){
double numero,exponente,i;
cout<<"introduzca un numero";
cin>>numero;
cout<<"introduzca el exponente";
cin>>exponente;
cout<<pow(numero,exponente);



Mucho cuidadin con la variables.
Responder Con Cita