Skip to content
C

De Morgan's Law

Mediumjava

Read two booleans p and q. Print the value of !(p && q) and the value of !p || !q — De Morgan's law says they are always equal.

Input: one line with two words, each true or false.

Output: one line: <!(p && q)> <!p || !q> (they will match).

Input (stdin)

Output

Run your code to see output here...