Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <algorithm>
- #include <vector>
- using namespace std;
- int niza[100];
- int n;
- void input(int i) {
- if(i == n) {
- return;
- }
- cin >> niza[i];
- input(i + 1);
- }
- int main() {
- cin >> n;
- input(0);
- for(int i = 0; i < n; i++) {
- cout << niza[i] << " ";
- }
- return 0;
- }
- // print(1) : cout << 1 << endl;
- // print(2) : cout << 2 << endl;
- // print(3) : cout << 3 << endl;
- // print(4) : cout << 4 << endl;
- // print(5) : cout << 5 << endl;
- // print(6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement