Q. What will be the output of the given code?
Code:
for i in 1...3 for j in 1..3 puts j end end
β
Correct Answer: (C)
1 2 3 1 2 3
Explanation: The program will print 1 2 3 two times.