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