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) {
- if(x < 10) {
- recursion(x + 1);
- }
- cout << x << " ";
- }
- int main() {
- recursion(1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement