Untitled

 avatar
unknown
plain_text
2 years ago
344 B
1
Indexable
#include <iostream>

using namespace std;
int main(){
    int a, b;
    cin >> a >> b;
    for (size_t i = 0; a - b > 1; b++){
        if (b % 2 == 0) {
            cout << b << " " << endl;
        }
    }
    for (size_t i = 0; b - a > 1; a++){
        if (a % 2 == 0) {
            cout << a << " " << endl;
        }
    }
}
Editor is loading...