> 其他 >
1、已知 A=10.1 B=2 C=-2.6 写出下面逻辑表达式的结果.A>B.and.C>A.or.A<B.an
已知 A=10.1 B=2 C=-2.6 写出下面逻辑表达式的结果.
(1) A>B.and.C>A.or.AB
(2) A>B.and.C>A.or..not.C>B .and.A3%B
2、写出运算结果
str(25.33,4,1)
substr(“远程教育中心”,5,2)
人气:225 ℃ 时间:2020-05-26 21:23:29
解答
A>B.and.C>A.or.AB ==== false
A>B.and.C>A.or..not.C>B .and.A3%B ====true
逻辑运算里面,非0 即为 真(true ,1),对于这些问题,都得看运算优先级,not优先级高于and 高于or,算数运算要高于逻辑运算
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版