这vb怎么求???急

来源:百度知道 编辑:UC知道 时间:2024/05/12 13:07:59
明天有效啊~~:设a=3,b=4, c=5,求a+b>c And b=c;3>2*b Or a=c And b<>c Orc>d;Not a<=c Or 4*c=b^2 And b<>a+c;
2):列出下列的布尔表达式:
1,候选人的条件:性别(sex)为男,职称(zhicheng)为副教授以上,(age)年龄小于40岁。
2,分房条件:已婚(married),年龄(age)在26岁以上,工作年限(working_age)在5年以上。
OK???

1:
a+b>c And b=c
3+4>5,4不等于5所以False

3>2*b Or a=c And b<>c Or c>d
中间的and先算3不等于5,但是4不等于5,中间true,结果true

Not a<=c Or 4*c=b^2 And b<>a+c
3<=5取反为false,然后算与的两边4*5=20,4的平方为16,4*c=b^2结果false,
or两边都是false,结果false
运算顺序非》与》或

1.副教授是什么类型,当做整形类型的变量好了
sex="男" and zhicheng>=副教授 and age<40
2.married=true and age>26 and working_age>5