A440.*循环输出2
2025-09-21 11:41:07
发布于:广东
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
void f(int x1, int x2) {
for (int i = x1; i <= x2; i++)
if (i % 2 == 1)
cout << i << endl;
}
int main() {
f(1, 100);
return 0;
}
这里空空如也
有帮助,赞一个