代码:
//2_9.cpp
#include <iostream>
using namespace std;
int main() {
for (int i = 100; i <= 200; i++) {
if (i % 3 != 0) {
cout << i << endl;
}
}
return 0;
}
运行结果:
代码:
//2_9.cpp
#include <iostream>
using namespace std;
int main() {
for (int i = 100; i <= 200; i++) {
if (i % 3 != 0) {
cout << i << endl;
}
}
return 0;
}
运行结果: