fork download
  1. #include<stdio.h>
  2.  
  3. int main() {
  4. int fat = 1;
  5. for (int termo = 2; termo <= 20; termo += 2) {
  6. fat *= termo - 1;
  7. fat *= termo;
  8. printf("%d\n", fat);
  9. }
  10. }
  11.  
  12. //https://pt.stackoverflow.com/q/461176/101
Success #stdin #stdout 0s 4372KB
stdin
Standard input is empty
stdout
2
24
720
40320
3628800
479001600
1278945280
2004189184
-898433024
-2102132736