Advertisement
Josif_tepe

Untitled

May 6th, 2025
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <queue>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. void print(int brojac) {
  7.     if(brojac > 3) {
  8.         return;
  9.     }
  10.     cout << "HELLO WORLD" << endl;
  11.     print(brojac + 1);
  12. }
  13. int main()
  14. {
  15.     print(1);
  16.  
  17.     return 0;
  18. }
  19. //print(1)
  20. //print(2)
  21. //print(3)
  22. //print(4)
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement