欢迎来到牛牛题库网 牛牛题库官网
logo

单项选择题

从键盘任意输入一个整数,编程判断它的奇偶性。按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。#include <stdio.h> int main() { int a; printf("Input an integer number:"); scanf("%d", &a); if (________) printf("a is an even number/n"); else printf("a is an odd number/n"); return 0; }
A、a%2 == 0
B、a%2 = 0
C、a/2 = 0
D、a%2 != 0

A.h>
点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题