#include <stdio.h>
int main()
{int n;while(~scanf("%d",&n))if (n%2==0)printf("even\n");elseprintf("odd\n");return 0;
}
详细解决方案
【1742】判断奇偶数(多组数据)
热度:33 发布时间:2023-12-06 10:03:46.0
#include <stdio.h>
int main()
{int n;while(~scanf("%d",&n))if (n%2==0)printf("even\n");elseprintf("odd\n");return 0;
}