Course of Raku / Essentials / Variables and data types essentials / Boolean type / Exercises

Boolean tables

Problem

Create a program that prints the results of the three Boolean operations for all the combinations of True and False.

Example

Here is an example of partial output of this program.

$ raku tables.raku
True && True is True
True && False is False
. . .

Solution

See the solution

Course navigation

Quiz: Boolean operations with non-Boolean data   |   Solution: Boolean tables

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська