Q. What will be the output of the given code?
Code:for num in 1...4 puts num*num end
β
Correct Answer: (B)
1 4 9 16
Explanation: The program will print 1 4 9 16.
for num in 1...4 puts num*num end