Advertisement
luistavares

Código principal do exemplo de cálculo de potência

Aug 21st, 2012
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<conio.h>
  2. #include<stdio.h>
  3. #include"prototipos.h" /* Arquivo header salvo com este nome */
  4.  
  5. int main (void){
  6.     int num, r;
  7.     printf("Informe um numero: ");
  8.     scanf("%d", &num);
  9.     r = potencia(num, 3);
  10.     printf("O resultado eh: %d", r);
  11.     getch();
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement