Course of Raku / Advanced / Operators / Review of operator behaviour / Exercises

Power tower

Problem

The exponentiation operator ** is right-associative. Print the value of 2 ** 2 ** 3, and make sure you understand why it is not 64.

Example

The program prints:

256

Solution

See the solution

Course navigation

Solution: Force the order   |   Solution: Power tower