Course of Raku / 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

Next exercise

💪 Double negation

Course navigation

Numbers / Operations with numbers   |   Ranges