#include <stdio.h>
#include <math.h>
main() {
int x;
scanf("%d",&x);
if(x%2==0)
printf("%d是偶数",x);
else
printf("%d是奇数",x);
}
判断奇偶数
最新推荐文章于 2024-08-27 17:53:55 发布
#include <stdio.h>
#include <math.h>
main() {
int x;
scanf("%d",&x);
if(x%2==0)
printf("%d是偶数",x);
else
printf("%d是奇数",x);
}