- 2
- 0
- 约1.89万字
- 约 105页
- 2023-03-04 发布于广东
- 举报
Symbol Description 与(AND)当且仅当两者都为真,则结果为真 || 或(OR) 只要两者中有一个为真,结果就为真 ! 非(NOT) a b a b a || b !a !b 0 0 0 0 1 1 0 1 0 1 1 0 1 0 0 1 0 1 1 1 1 1 0 0 逻辑运算符( Logical Operators ) ! || 高 低 复合表达式(Compound Expression) Arithmetic, relational and mantic operators can be integrated/combined in one expression Example: ! ( c a ) a 2 b 5 c 15 d 17 ? ! ( 1 ) ! ( 15 2 ) ? 0 Example: (a = 1) (b == 5) ( 2 = 1 ) ( b == 5 ) 1 ( b == 5 ) 1 ( 5 == 5 ) 1 1 1 a 2 b 5 c 15 d 17 复合表达式(Compound Expression) Example
原创力文档

文档评论(0)