Vidyalelo
Ruby Programming · Q79

Control Structures in Ruby

Programming · Ruby Programming · question 79

Q79

What is the output of the given code? x=8 y=10 unless x y+1 puts "x is less than y+1" end

A.
x is less than y
B.
x is less than y+1
Answer
C.
x is less than y
x is less than y+1
D.
None of the mentioned

Answer: Option B

Solution

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