What is the output of the given code?
a=10
b=9
if(a>b)
print ("a greater than b")
else
print "Not greater"
end
a=10
b=9
if(a>b)
print ("a greater than b")
else
print "Not greater"
endA. a greater than b
B. Not greater
C. Syntax error
D. None of the mentioned
Answer: Option A
Related Questions on Operators in Ruby

Join The Discussion