//Check wheter two input intergers are the same without using comparison operator
#include<stdio.h>
int main()
{
int a,b;
printf("Please input two intergers:\n");
scanf("%d%d",&a,&b);
if ((a^b) == 0)
{
printf("These two intergers are the same\n");
}
else
{
printf("These two intergers are not the same\n");
}
return 0;
}
Check whether two input intergers are the same without using comparison operator
最新推荐文章于 2021-10-17 20:42:24 发布