Run ID:100736

提交时间:2024-12-11 21:59:17

#include <iostream> using namespace std; int main() { for (int i = 1; i <= 100; i += 2) { // 从1开始,每次增加2,直到100 cout << i << " "; // 输出奇数,后面跟一个空格 } cout << endl; // 最后换行 return 0; }