Advertisement
Josif_tepe

Untitled

Nov 11th, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <queue>
  4. using namespace std;
  5.  
  6. void recursion(int x) {
  7.     if(x < 10) {
  8.         recursion(x + 1);
  9.     }
  10.     cout << x << " ";
  11.  
  12. }
  13. int main() {
  14.     recursion(1);
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement