奇数:输出1-1000之间所有的奇数。

#include <stdio.h>

void main() {
    int i;
    for (i = 1; i <= 1000; i++)
        if (i % 2 == 1)
            printf("%d,", i);
}
发布了66 篇原创文章 · 获赞 1 · 访问量 922

猜你喜欢

转载自blog.csdn.net/qq_38490457/article/details/104576480