1.4编程基础之逻辑表达式与条件分支 03 奇偶数判断
作者:互联网
http://noi.openjudge.cn/ch0104/03/
/*
1.4编程基础之逻辑表达式与条件分支 03 奇偶数判断
http://noi.openjudge.cn/ch0104/03/
https://blog.csdn.net/yigezzchengxuyuan/article/details/86651658
*/
#include<iostream>
using namespace std;
int main(void)
{
int x;
cin>>x;
if( x%2==1)
{
cout<<"odd"<<endl;
}
else
{
cout<<"even"<<endl;
}
return 0;
}
标签:1.4,奇偶,cn,03,int,openjudge 来源: https://blog.csdn.net/dllglvzhenfeng/article/details/122154190