fork download
  1. #include <stdio.h>
  2. int hoge(int a){
  3. if(a<0){
  4. return a;
  5. }else{
  6. return hoge(a-1)+hoge(a-2);
  7. }
  8. }
  9. int main(void) {
  10. // your code goes here
  11. printf("%d ",hoge(5));
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
-29