fork(2) download
  1. #include <math.h>
  2.  
  3. int main(void) {
  4.  
  5. int N = 10;
  6. int i;
  7. int fat = 1;
  8.  
  9. for (i = 1; i <= N; i++) fat *= i;
  10.  
  11. printf("O produto dos %d números pares é %f\n", N, pow(2, N)*fat);
  12.  
  13. return 0;
  14.  
  15. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
O produto dos 10 números pares é 3715891200.000000