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

Join The Discussion