fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void F (int n)
  5. {
  6. if (n > 0) {
  7. std::cout << n;
  8. F (n / 2);
  9. F (n - 4);
  10. }
  11. }
  12.  
  13. int main() {
  14. F(9);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5456KB
stdin
Standard input is empty
stdout
94215211