Q. What is the output of the given code?
i=1
for i in 5..10
puts i^2
end
i=1
for i in 5..10
puts i^2
end
β
Correct Answer: (B)
25 36 49 64 81 100
You must be Logged in to update hint/solution