Guest User

Untitled

a guest
Jun 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. void f() {
  7. static int x = 4;
  8. int i = 10;
  9. if(x == 2)
  10. return;
  11. x--;
  12. cout<<"x:"<<x<<" i:"<<i<<"\n";
  13. i = i*x;
  14. f();
  15. cout<<"x:"<<x<<" i:"<<i<<"\n";
  16. }
  17.  
  18. int main()
  19. {
  20. f();
  21. return 0;
  22. }
Add Comment
Please, Sign In to add comment