#include <stdio.h>
int main(void)
{
int a, b;
printf("Please enter a number\n");
while (scanf("%d", &a) && a >= 0 && a <= 999)
{
b = a % 2;
if (b!=0)
printf("Odd\n");
else
printf("Even\n");
printf("Please enter a number\n");
}
}
温馨提示:答案为网友推荐,仅供参考