Vidyalelo
Ruby Programming · Q42

Operators in Ruby

Programming · Ruby Programming · question 42

Q42

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
Answer
B.
Not greater
C.
Syntax error
D.
None of the mentioned

Answer: Option A

Solution

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