Pregunta en
Electricidad del hogar
y en 4 temas más
de
¿Como realizar una potencia sin usar pow? (Tiene que servir para indices negativos)
Realice este programa: #include <iostream> using namespace std; int potencia (int base, int indice){ int pot=1; for (int p=1;p<=indice;p++) pot*=base; return pot;} int main(int argc, char *argv[]) { int x,y,z; cout<<"Ingresar base:"; cin>>x;...
Sin respuestas