fork download
  1. #include <iostream>
  2. using namespace std;
  3. int a=10;
  4. int go(int b)
  5. {
  6. if(b<=4)
  7. return b;
  8. else
  9. return go(b+1)*go(b-2)-(b*2);
  10. ++a;
  11. cout<<a;
  12. return -1;
  13. }
  14.  
  15. int main() {
  16.  
  17. cout << "go(2) returns " << go(2);
  18. // your code goes here
  19. return 0;
  20. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
go(2) returns 2