Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "list.cpp"
- using namespace std;
- int main()
- {
- int n;
- cin >> n;
- List<int> lst;
- int x;
- for (int i = 0; i < n; ++i)
- {
- cin >> x;
- lst.add(x);
- }
- lst.doubleOdd();
- lst.print();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement