关于条件语句

lakers_kobe lakers_kobe 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#include<stdio.h>
void main()
{
int a,b,c;
printf("please input a and b: ");
scanf("%d%d",a,b);
c=a-b;
if(c==a||c==b)
printf("difference is equal to value<number of value entered>\n");
else
printf("difference is not equal to any of the values entered\n");
}
程序要求:计算两个数的差值。如果差值等于输入的两个值中的任意一个,
输出:difference is equal to value<number of value entered>如果差值
不等于输入的两个值中的任意一个,
输出:difference is not equal to any of the values entered
我不知问题出在哪,请大家指教!
...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
lakers_kobe
C语言 70,040 成员 243,237 内容