Untitled
unknown
plain_text
2 years ago
270 B
2
Indexable
Never
#include <iostream> using namespace std; int main() { int a, b; int i = 0; cin >> a >> b; if (a % 2 == 0) { for (i = a; i <= b; i += 2) { cout << i << " "; } } else { for (i = a+1; i <= b; i += 2) { cout << i << " "; } } }