#c语言 判断一个整数的奇偶性#
作者:互联网
#include <stdio.h>
#include <stdlib.h>
int main()
{
unsigned int number;
int result;
printf("请输入一个无符号整数: \n");
scanf("%d",&number);
result=number%2;
if(result==0)
printf("整数%d是偶数!\n",number);
else
printf("整数%d是奇数!\n",number);
return 0;
}
标签:语言,int,number,整数,奇偶性,result,printf,include 来源: https://blog.csdn.net/weixin_66397563/article/details/122493560