编写程序计算并输出 下面各逻辑表达式的值。设a=3,b=4,c=5 (1) a+b>c&&b==c (2) a||b+c&&b-c (3) !(a>b)&

这个怎么做?

......
这种简单问题都问...拜托稍微动点脑细胞,不然还写个P程序。

#include <stdio.h>

int main(int argc, char* argv[])
{
int a = 3;
int b = 4;
int c = 5;

int res = (a + b > c && b == c);
printf("%d\n", res);
res = (a || b + c && b - c);
printf("%d\n", res);
//......
return 0;
}
温馨提示:答案为网友推荐,仅供参考