Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int n;
- void g(int col){
- int e;
- cin >> e;
- if (col == n) {
- cout << e << " ";
- return;
- }
- g(col + 1);
- cout << e << " ";
- }
- int main (){
- cin >> n;
- g(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement