Numeros de potencia
an anonymous user
·
C++
#include <math.h>
#include <stdio.h>
int main(){
double num, potencia, r_potencia, raiz;
printf("Ingresa el numero: \n");
scanf("%if", &num);
printf("potencia: \n");
scanf("%if", &potencia);
r_potencia = pow(num, potencia);
raiz = sqrt(num);
printf("%if elevado a la potencia %if es %if \n", num, potencia, r_potencia);
printf("La raiz cuadrada de %if es %if \n", num, raiz);
return 0;
}
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.