当前位置: 代码迷 >> C语言 >> [求助]请高手指教
  详细解决方案

[求助]请高手指教

热度:280   发布时间:2005-11-20 19:37:00.0
没有声明!把==写成了=号!应该注意!我是学JAVA的来这逛逛

----------------解决方案--------------------------------------------------------

谢谢我知道哪错了


----------------解决方案--------------------------------------------------------
#include <stdio.h>
void main()
{
int a,b;
printf("Please Input number a&b :");
scanf("%d%d",&a,&b);
if (b-a==b || a-b==b)
printf("Difference is equal to value %d\n",b);
else if (b-a==a || a-b==a)
printf("Difference is equal to value %d\n",a);
else
printf("difference is hotequal to any of the values entered\n");
}

----------------解决方案--------------------------------------------------------
  相关解决方案