-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex27.txt
57 lines (52 loc) · 1.14 KB
/
ex27.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Memorizing Logic
and or not !=(not equal)
==(equal) >=(greater-than-equal) <=(less-than-equal)
Ture False
The Truth Tables
_________________________
| NOT | True? |
|___________|___________|
| not False | Ture |
| not Ture | False |
_________________________
| OR | True? |
|___________|___________|
| T or F | True |
| T or T | True |
| F or T | True |
| F or F | False |
_________________________
| AND | True? |
|___________|___________|
| T and T | True |
| T and F | False |
| F and T | False |
| F and F | False |
_________________________
| NOT OR | True? |
|___________|___________|
| not(TorF) | False |
| not(TorT) | False |
| not(ForT) | False |
| not(ForF) | True |
_________________________
| NOT AND | True? |
|___________|___________|
|not(TandT) | False |
|not(TandF) | True |
|not(FandT) | True |
|not(FandF) | True |
_________________________
| != | True? |
|___________|___________|
| 1!=1 | False |
| 1!=0 | True |
| 0!=1 | True |
| 0!=0 | False |
_________________________
| == | True? |
|___________|___________|
| 1==1 | True |
| 1==0 | False |
| 0==1 | False |
| 0==0 | True |