fork(1) download
  1. #include <stdio.h>
  2.  
  3. typedef struct{
  4. char b[50];
  5. }a;
  6.  
  7. int func(int x)
  8. {
  9. if(x<=1)
  10. return 1;
  11.  
  12. else
  13. return func(x-1)*x;
  14.  
  15. }
  16.  
  17. int main(void) {
  18. int a=5;
  19.  
  20. printf("%d ",func(a));
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 5548KB
stdin
ahmed
stdout
120