Examveda

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. a greater than b

B. Not greater

C. Syntax error

D. None of the mentioned

Answer: Option A


This Question Belongs to Ruby Programming >> Operators In Ruby

Join The Discussion

Related Questions on Operators in Ruby