幂函数.c 207 B

12345678910111213141516
  1. #include <stdio.h>
  2. #include <math.h>
  3. void myPower(double x,int n) {
  4. double result = pow(x,n);
  5. printf("%lf",result);
  6. }
  7. int main() {
  8. double x;
  9. int n;
  10. scanf("%lf,%d",&x,&n);
  11. myPower(x,n);
  12. return 0;
  13. }