Q. What is the output of the given code?
for num in 1..5
puts num*num
end
for num in 1..5
puts num*num
end
β
Correct Answer: (C)
1 4 9 16 25
You must be Logged in to update hint/solution