18/19


#1

Please Help, my code does not pass the exercise but prints the right results:
my_array = [1, 2, 3, 4, 5]

my_array.each do |n| puts n ** n

end


#2

n ** n is n to the nth power.

And according to instructions you have to use n * n:

Add a block after .each that multiplies each item by itself and puts the result to the console.


#3

Ah ok. Thanks so much


#4

You're very welcome :smile: