代码: #include<stdio.h> int main() { for (int i = 1;i < 101;i++) { if (i % 2 == 1) { printf("%d, ", i); } } return 0; } 运行结果: