Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def first_square_numbers(number_of_squares)
- squares = []
- idx = 0
- while idx < number_of_squares
- squares.push(idx * idx)
- idx = idx + 1
- end
- return squares
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement