C:判断整数奇偶性;
#include <stdio.h>
int main(){
int num;
scanf("%d",&num);
if(num%2==0)
printf("even.");
else
printf("odd.");
return 0;
}
#include <stdio.h>
int main(){
int num;
scanf("%d",&num);
if(num%2==0)
printf("even.");
else
printf("odd.");
return 0;
}