已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是多少
问题描述:
已经a=3.5,b=5.0,c=2.5,d=true.表达式a>=0 and a+c>b+3 or not d的值是多少
答
(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