What is the output of the given code?
variable = false
if variable
print "false"
elsif !variable
print "true"
end
variable = false
if variable
print "false"
elsif !variable
print "true"
endA. False
B. True
C. Syntax error
D. None of the mentioned
Answer: Option B

Join The Discussion