What is the output of the given code?
if(a==10 && b=9)
print "true"
else
print "false"
end
if(a==10 && b=9)
print "true"
else
print "false"
endA. True
B. False
C. Error
D. None of the mentioned
Answer: Option C
Related Questions on Operators in Ruby

Join The Discussion