Course of Raku / Addendum 🆕 / Flow and functions / Control flow and logic / Exercises
Sign and parity
Problem
For each of the numbers -4, 0, and
7, print whether it is negative, zero, or positive, and
whether it is even or odd, in the form shown in the example.
Example
The program prints:
-4 is negative and even
0 is zero and even
7 is positive and odd