From c92c4e009034323d6c00e05460fb7c64fb8c1898 Mon Sep 17 00:00:00 2001 From: Alex Farmer Date: Wed, 28 Aug 2019 20:06:21 +0000 Subject: [PATCH] Done. --- lib/square_array.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/square_array.rb b/lib/square_array.rb index 852a8fe..2c7675c 100644 --- a/lib/square_array.rb +++ b/lib/square_array.rb @@ -1,3 +1,10 @@ def square_array(array) - # your code here -end \ No newline at end of file + + counter = 0 + while array.length > counter do + array[counter] **= 2 + counter += 1 + end + p array +end + \ No newline at end of file