Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <vector>
- #include <stack>
- using namespace std;
- void funkcija() {
- static int c = 0;
- c++;
- cout << c << endl;
- }
- int main()
- {
- for(int i = 0; i < 10; i++) {
- funkcija();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement