Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <queue>
- using namespace std;
- void recursion(int x) {
- cout << x << " ";
- if(x < 10) {
- recursion(x + 1);
- }
- }
- int main() {
- recursion(1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement