7
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

:star2:論理演算子について

if文の中だったりでわりと使うことが多い、論理演算子ですが、ぱっと考えるとあれ、どうだったかなとなるときがあります。

その際にぱっと見返せるものが欲しくてベン図を用いて作成しました。
私が作成したい以下の図を用いておこなっていきます。
image.png

:tulip: ピンク色に変化している箇所が該当の箇所です
:star:箇所はド・モルガンの法則を利用

!A

image.png

!B

image.png

A || B

image.png

A && B

image.png

:star:!(A || B) = !A && !B

image.png

:star:!(A && B) = !A || !B

image.png

7
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?