Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- void main() {
- ifstream in("in.txt");
- ofstream out("out.txt");
- int x;
- while (in >> x) {
- if (x % 2 == 0)
- out << x << " ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement