Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- setlocale(LC_ALL, "rus");
- vector<int> test;
- int val = 0;
- int size = 0;
- cout << "Enter size" << endl;
- cin >> size;
- cout << "Input elements" << endl;
- for (int i = 0; i < size; i++) {
- cin >> val;
- test.push_back(val);
- }
- for (int i = 0; i < test.size(); i++) {
- cout << " " << endl;
- cout << test[i] << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement