fork(7) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int f=2,i;
  5. for(i=3;i<=20;i++){
  6. f=f*i;
  7. printf("%d\n",f);
  8. }
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
6
24
120
720
5040
40320
362880
3628800
39916800
479001600
1932053504
1278945280
2004310016
2004189184
-288522240
-898433024
109641728
-2102132736