Vidyalelo
Ruby Programming · Q100

Control Structures in Ruby

Programming · Ruby Programming · question 100

Q100

What is the output of the given code? i = 50 j=55 while i > 25 && i*j<100 do puts (50*j)/i i -= 1 j-=2 end

A.
25 35
B.
No output
Answer
C.
Infinite loop
D.
55 54 53 52 51 50 48 47 46 45

Answer: Option B

Solution

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