Advertisement
Avdluna

AQUECIMENTO PARA OBI - B

May 23rd, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main()
  6. {
  7.    int n,a;
  8.    scanf("%d", &n);
  9.  
  10.    a = pow(3,n);
  11.  
  12.    printf("%d\n",a);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement