Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void f() {
- static int x = 4;
- int i = 10;
- if(x == 2)
- return;
- x--;
- cout<<"x:"<<x<<" i:"<<i<<"\n";
- i = i*x;
- f();
- cout<<"x:"<<x<<" i:"<<i<<"\n";
- }
- int main()
- {
- f();
- return 0;
- }
Add Comment
Please, Sign In to add comment