fork download
  1. #include <stdio.h>
  2. int f(int n) {
  3. if(n<=1) return 1;
  4. else return n*f(n-1);
  5. }
  6. int main() {
  7. printf("%d", f(7));
  8. }
  9.  
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
5040