#include <iostream>
using namespace std;
int main()
{
int a;
printf("请输入a的值:");
scanf("%d",&a);
if(a & 1)
cout << "是奇数" << endl;
else
cout << "是偶数" << endl;
}
---------------------
作者:Dannii_
来源:CSDN
原文:https://blog.csdn.net/qq_36748278/article/details/54577930
版权声明:本文为博主原创文章,转载请附上博文链接!