Q. What will be the output of the given code?
Code:
for i in 1..5 && j in 5..10 puts i+j end
β
Correct Answer: (B)
Syntax Error
Explanation: syntax error, unexpected keyword_in, expecting keyword_do_cond.