#include<stdio.h> int main() { int a; while(scanf("%d",&a)!=EOF) if(a%2==0) printf("odd"); else printf("even"); return 0; }
Problem D: 零起点学算法24——判断奇偶数
原文:https://www.cnblogs.com/chenlong991223/p/9744492.html