已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是fa
来源:学生作业帮 编辑:作业帮 分类:数学作业 时间:2024/05/09 11:56:28
已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是false还是0?
(a>=0)
=true
a+c
=6
b+3
=8
(a+c>b+3)
=(6>8)
=false
not d
=not true
=false
a>=0 and a+c>b+3 or not d
=true and false or false
=false or false
=false
或者这样理解
已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是多少
a>=0 and a+c>b+3 or not d等效于
(a>=0 and a+c>b+3) or (not d)
=(True and False) or False
=False or False
=False
所以值为False,即0
再问: 嗯我知道是false,我是问,答案是false还是0?两者有什么区别
再答: 哦,这个我曾经研究过,跟你说说: VB承认的True, False表示方法除了常见的True,False这两个布尔值之外 可以用数字。 ·任何不等于零的数字,无论正负,都表示True ·0表示False 这个是系统承认的我们给出的值。 但是,系统反馈给我们的值,则是有统一的规范 通过下面小程序就可以知道 Private Sub Form_Load() Dim t as integer,f as integer t=True f=False msgbox "True:" & t & " False:" & f End Sub 结果显示,系统用-1表示true,0表示false
=true
a+c
=6
b+3
=8
(a+c>b+3)
=(6>8)
=false
not d
=not true
=false
a>=0 and a+c>b+3 or not d
=true and false or false
=false or false
=false
或者这样理解
已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是多少
a>=0 and a+c>b+3 or not d等效于
(a>=0 and a+c>b+3) or (not d)
=(True and False) or False
=False or False
=False
所以值为False,即0
再问: 嗯我知道是false,我是问,答案是false还是0?两者有什么区别
再答: 哦,这个我曾经研究过,跟你说说: VB承认的True, False表示方法除了常见的True,False这两个布尔值之外 可以用数字。 ·任何不等于零的数字,无论正负,都表示True ·0表示False 这个是系统承认的我们给出的值。 但是,系统反馈给我们的值,则是有统一的规范 通过下面小程序就可以知道 Private Sub Form_Load() Dim t as integer,f as integer t=True f=False msgbox "True:" & t & " False:" & f End Sub 结果显示,系统用-1表示true,0表示false
已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是fa
已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是多少
VB 2005中 已知a=3.5,b=5.0,c=2.5,d=True,则表达式:a>=0 AND a+c>b+3 OR
a=5,b=4,c=3,d=2,下列表达式3>2*b Or a=c And bc Or c>d的值是( ) A True
设a=3,b=4,c=-1,写出以下逻辑表达式的值.a-b/c-d or c>d and not c>0 or d
假设A=true,B=false,C=true,D=true,逻辑运算表达式A∧B∨C∧D的值是( ).
=4,b=3,c=2,d=1下列表达式的值是a大于b+1 or c小于d and b mod c
a=true,b=true,c=false,d=5,求表达式!a||d&&b||c的结果?
关于逻辑运算表达式假设A=true,B=false,C=true,D=true,逻辑运算表达式值为真的是{ (A∧B)∨
若A=20,B=80,C=70,D=30,则表达式 (A+B)>160 Or (B*C>200 And Not D>60
VB选择题设a=2,b=3,c=4,下面表达式的值是6>2*a or a+b=c and bc or c>d
一道计算机VB二级题设a=5,b=4,c=3,d=2,下列表达式的值是()3>2*b Or a=c And b c Or