Examveda

What is the output of the given code?
if 11>2
   puts "Eleven is greater than two"
   end
   print "You'r right"

A. Eleven is greater than two

B. You'r right

C. Eleven is greater than two
You'r right

D. None of the mentioned

Answer: Option C


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

Join The Discussion

Related Questions on Control Structures in Ruby