## Dis-junction (∨) vel

If (p) and (q) both are false then (p v q) becomes false, otherwise (p v q) is true (T)

pqp v q
TTT
FFF
TFT
FTT

## Logical Connectives: and, or, not

NoConnectivesMeaningSymbolCalledC++ Operators
1Nagationnot˜Tilde!
2Congunctionand˄Hat&&
3Disjunctionor˅Vel||
4Conditionalif - thenArrowif else
5Biconditionalif and only ifDouble Arrow

## Truth Table

A truth table contain the truth value T and F.

## Negation (~)

if (p) is a statement then its nagation is (~p), if (p) is false its truth value become (~p) is true.

P~p
TF
FT

## Conjunction (^)

If (p) and (q) are statement then the conjunction is (p^q) and it is true when both (p) and (q) are true.

If either (p) or (q) are false and if both are false the result of (p^q) is false.

pqp^q
TTT
FFF
TFF
FTF

## Statement and Sentence

Statement: Statement is the meaning of sentence we can understand.

Sentence: If we can not understand the meaning of given sentence is called simple sentence.

Compound Sentence: Two or more statement join to each other makes a new compound statement.

For-examples:

Statement:

• 2+4 = 6
• Mazar e Sharif is a city.
• Today is hot.
• 3+5 = 20

Sentence:

• Close the door.
• x+y = 6
• Open the door.

Compound Statement:

• Mazar is a city and 2 plus 3 is equal to 5.
• Ali is an intelligent boy and he is 15 years old.