Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main(){
- float Base = 0;
- int Expoente = 0;
- int Contatador;
- double Resultado = 0;
- int Numero = 0;
- /* Inicio do programa; by: Hiro Matsumoto */
- printf("Informe a BASE: ");
- scanf("%f",&Base);
- printf("%.0f de Expoente: ",Base);
- scanf("%d",&Expoente);
- Resultado = pow(Base,Expoente);
- printf("%.0f^%d | Resultado = %g\n",Base,Expoente,Resultado);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement