MUstar

IoT C언어 0424 - 실습2

Apr 23rd, 2017
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int my_power(int a);
  5.  
  6. int main(void)
  7. {
  8.     int num1;
  9.     num1 = my_power(1024);
  10.     printf("%d\n", num1);
  11.  
  12.     return 0;
  13. }
  14. int my_power (int a)
  15. {
  16.     int num2;
  17.     num2 = (int)pow(2.0,10.0);
  18.  
  19.     return num2;
  20. }
RAW Paste Data