fork download
  1. #include <stdio.h>
  2. int seki(int x){
  3. if(x==1){
  4. return 1;
  5. }
  6. else {
  7. return x*seki(x-1);
  8. }
  9. }
  10.  
  11. int main(void) {
  12. int x=3;
  13. printf("%d",seki(x));
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
6