Vidyalelo
Ruby Programming · Q66

Control Structures in Ruby

Programming · Ruby Programming · question 66

Q66

What is the output of the given code? x=7 y=9 if x==y print "equal" elsif x>y print "greater" else print "less" end

A.
equal
B.
greater
C.
less
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board