L11 - A

public
yeskendir.sultanov Mar 29, 2024 Never 51
Clone
C++ l11a.cpp 19 lines (16 loc) | 254 Bytes
1
#include <bits/stdc++.h>
2
3
using namespace std;
4
5
void rec(int n) {
6
int x;
7
cin >> x;
8
if (n - 1 > 0) {
9
rec(n - 1);
10
}
11
cout << x << " ";
12
}
13
14
int main() {
15
int n;
16
cin >> n;
17
rec(n);
18
return 0;
19
}
20
21
22