Cornaldo Problem
#include <iostream>
using namespace std;
int main() {
int i = 2;
while (i < 20) {
cout << i << ' ';
i += 2;
}
while (i >= 2) {
cout << i << ' ';
i -= 2;
}
}INFO
#include <iostream>
using namespace std;
int main() {
int i = 2;
while (i < 20) {
cout << i << ' ';
i += 2;
}
while (i >= 2) {
cout << i << ' ';
i -= 2;
}
}