Examveda

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

A. 13

B. 14

C. 15

D. None of the mentioned

Answer: Option B


This Question Belongs to Ruby Programming >> Control Structures In Ruby

Join The Discussion

Related Questions on Control Structures in Ruby