P. 1
Operator Logika

Operator Logika

|Views: 673|Likes:
Published by Habibi Mustafa

More info:

Published by: Habibi Mustafa on May 14, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

04/05/2013

pdf

text

original

Operator Logika

_________________________________________________________________
Operator | Maksud | Jenjang |
---------|-----------------------------------------|------------|
NOT | Penidakkan/Menidakkan | 1 |
AND | Menghubungkan 2 elemen senada | 2 |
OR | Menghubungkan 2 elemen pilihan | 3 |
XOR | Exclisive OR, membenarkan elemen | 4 |
| yang tidak sama | |
EQV | Equivalent, membenarkan hubungan | 5 |
| elemen yang sama | |
IMP | Implikasi, membenarkan elemen yang | 6 |
| sama atau benar bila elemen kedua | |
| benar | |
_________|_________________________________________|____________|
Pemakaian Operator Logika NOT
A | NOT A
1 | 0
0 | 1
Contoh : IF NOT JK = "Laki-laki" THEN . . .
Pemakaian Operator Logika AND
A | B | A AND B
1 | 1 | 1
1 | 0 | 0
0 | 1 | 0
0 | 0 | 0
Contoh :
Pemakaian Operator Logika OR
A | B | A OR B
1 | 1 | 1
1 | 0 | 1
0 | 1 | 1
0 | 0 | 0
Contoh :
Pemakaian Operator Logika XOR
A | B | A XOR B
1 | 1 | 0
1 | 0 | 1
0 | 1 | 1
0 | 0 | 0
Contoh :
Pemakaian Operator Logika EQV
A | B | A EQV B
1 | 1 | 1
1 | 0 | 0
0 | 1 | 0
0 | 0 | 1
Contoh :
Pemakaian Operator Logika IMP
A | B | A IMP B
1 | 1 | 1
1 | 0 | 0
0 | 1 | 1
0 | 0 | 1
Contoh :
Operator Relasi
_________________________________________
Operator | Maksud |
---------|------------------------------|
< | Lebih kecil daripada |
> | Lebih besar daripada |
<= | Lebih kecil atau sama dengan |
>= | Lebih besar atau sama dengan |
= | Sama dengan |
<> | Tidak sama dengan |
_________|______________________________|

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->