Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int my_power(int a);
- int main(void)
- {
- int num1;
- num1 = my_power(1024);
- printf("%d\n", num1);
- return 0;
- }
- int my_power (int a)
- {
- int num2;
- num2 = (int)pow(2.0,10.0);
- return num2;
- }
Advertisement
Add Comment
Please, Sign In to add comment