崔铭1315 发表于 2020-8-18 22:55:55

为什么整数输出出来这么大

#include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
if((a!=1)&&(a%2==0))printf("%d is an even number");
else printf("%d is a prime number");
}

永恒的蓝色梦想 发表于 2020-8-18 22:58:15


#include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
if((a!=1)&&(a%2==0))printf("%d is an even number",a);
else printf("%d is a prime number",a);
}
页: [1]
查看完整版本: 为什么整数输出出来这么大