From 808b47cb2a0ff32289df400d2d16729eb781d501 Mon Sep 17 00:00:00 2001 From: Mike Alessi Date: Fri, 16 Oct 2020 19:16:35 +0000 Subject: [PATCH] Done. --- square_array.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/square_array.rb b/square_array.rb index 852a8fe32..f09e64bd6 100644 --- a/square_array.rb +++ b/square_array.rb @@ -1,3 +1,8 @@ def square_array(array) # your code here -end \ No newline at end of file +counter = 0 + array.each do |i| + array[counter] = i**2 +counter+=1 + end +end