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