diff --git a/submission/exercisie-ex01/chan/main.cpp b/submission/exercisie-ex01/chan/main.cpp new file mode 100644 index 0000000..28d11b2 --- /dev/null +++ b/submission/exercisie-ex01/chan/main.cpp @@ -0,0 +1,28 @@ +#include +#include + +using namespace std; + +list lst; +int n, a, b; + +int main() +{ + + for (int i = 0; i < 10; i++) { + cin >> n; + lst.push_back(n); + } + cin >> a >> b; + + + //list::iterator iter = lst.begin(); + + lst.remove_if([&](int x) { return x > a && x <= b; }); + + for (int num : lst) { + cout << num << " "; + } + + return 0; +} \ No newline at end of file