题解 | #判断整数奇偶性#
判断整数奇偶性
https://www.nowcoder.com/practice/a8b018667e274af29b5f76a6673450fc
#include <stdio.h> int main() { int a = 0; while (scanf("%d", &a) != EOF) { if (a%2 == 0) { printf("Even\n"); } if (a%2 != 0) { printf("Odd\n"); } } return 0; }
c语言刷题 文章被收录于专栏
c语言刷题题目