Q. What will be the output of the given code?
Code:
i=1 for i in 6..10 puts i**2 end
β
Correct Answer: (D)
36 49 64 81 100
Explanation: The output for the following code is 36 49 64 81 100.