fork(1) download
  1. int fun(int x, int y)
  2. {
  3. if (x == 0)
  4. return y;
  5. return fun(x - 1, x + y);
  6. }
  7.  
  8. int main(void)
  9. {
  10. printf("%d",fun(4,3));
  11. return 0;
  12. }
Success #stdin #stdout 0s 5400KB
stdin
Standard input is empty
stdout
13