#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;
};
判断并输出两个数之间的奇数
于 2022-01-26 15:49:47 首次发布