fork(1) download
  1. #include <stdio.h>
  2. double Power(double x,int n)
  3. {
  4. double p=1;
  5. int i;
  6. for(i=1;i<=n;i++)
  7. p=x*p;
  8. return p;
  9. }
  10.  
  11. int main(void) {
  12. // your code goes here
  13. int m;
  14. m=Power(4,2);
  15. printf("m=%d\n",m);
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5348KB
stdin
Standard input is empty
stdout
m=16