Advertisement
joyonto511

problem-3

Apr 2nd, 2021
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int myFunc(long int x, long int y, long int z){
  5.     long int sum;
  6.    
  7.     sum = pow((x*y),z);
  8.    
  9.     return sum;
  10. }
  11.  
  12. int main()
  13. {
  14.     long int x, y, z;
  15.     long int sum;
  16.    
  17.     printf("Enter the value of x, y, z: ");
  18.     scanf("%ld %ld %ld", &x,&y,&z);
  19.    
  20.     sum = myFunc(x,y,z);
  21.     printf("%ld", sum);
  22.    
  23.     return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement