Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int myFunc(long int x, long int y, long int z){
- long int sum;
- sum = pow((x*y),z);
- return sum;
- }
- int main()
- {
- long int x, y, z;
- long int sum;
- printf("Enter the value of x, y, z: ");
- scanf("%ld %ld %ld", &x,&y,&z);
- sum = myFunc(x,y,z);
- printf("%ld", sum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement