奇偶判断
作者:互联网
code
#include<iostream>
#include<cstdio>
using namespace std;
int main() {
ios::sync_with_stdio(false);
int n;
cin >> n;
if (n & 1) {
printf("odd");
//cout<<"odd";
} else {
printf("even");
//cout<<"even";
}
return 0;
}
compare
上为printf
标签:std,奇偶,compare,判断,int,printf,include 来源: https://www.cnblogs.com/jeseesmith/p/15873801.html