判断并输出两个数之间的奇数

#include<stdio.h>
#include<math.h>
#include<string>
int  main()
{
    //案例五
    printf("请输入二个整数:\n");
    int m, n, count = 0;
    scanf_s("%d%d", &m, &n);
    while (m <= n)
    {
        if (m % 2 != 0)
        {
            printf("%d\t", m);
            count++;
            if (count % 5 == 0)
            {
                printf("\n");
            }
        }
        m++;
    }
    return 0;
};

上一篇:【转】80后安稳上班,90后看心情上班,95后……太形象了!


下一篇:oracle篇 之 单行函数