Vidyalelo
Ruby Programming · Q74

Control Structures in Ruby

Programming · Ruby Programming · question 74

Q74

What is the output of the given code? counter=12 unless counter print counter+1 else print counter+2 end

A.
13
B.
14
Answer
C.
15
D.
None of the mentioned

Answer: Option B

Solution

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