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